Fixed particles in water being drawn under ruin structures (making it seem like plasma cutters aren't working), fixed all structures having the default health of 100 because of mismatching parameter name (Health vs MaxHealth)
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Barotrauma
|
||||
{
|
||||
private bool canSpriteFlipX;
|
||||
|
||||
private float maxHealth;
|
||||
private float health;
|
||||
|
||||
//default size
|
||||
private Vector2 size;
|
||||
@@ -31,10 +31,10 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
[Serialize(100.0f, false)]
|
||||
public float MaxHealth
|
||||
public float Health
|
||||
{
|
||||
get { return maxHealth; }
|
||||
set { maxHealth = Math.Max(value, 0.0f); }
|
||||
get { return health; }
|
||||
set { health = Math.Max(value, 0.0f); }
|
||||
}
|
||||
|
||||
[Serialize(false, false)]
|
||||
|
||||
Reference in New Issue
Block a user