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:
Joonas Rikkonen
2017-12-05 22:30:24 +02:00
parent fd09cb4ef5
commit 0b603ba10b
4 changed files with 40 additions and 62 deletions
@@ -147,7 +147,7 @@ namespace Barotrauma
{
if (damageEffect != null)
{
float newCutoff = Math.Min((sections[i].damage / prefab.MaxHealth), 0.65f);
float newCutoff = Math.Min((sections[i].damage / prefab.Health), 0.65f);
if (Math.Abs(newCutoff - Submarine.DamageEffectCutoff) > 0.01f)
{