Added damaged variants of junction box sprite, damaged item sprites can be set to fade in.

This commit is contained in:
Joonas Rikkonen
2018-01-11 20:48:26 +02:00
parent 466e6f8833
commit 1eaccef8c7
5 changed files with 43 additions and 10 deletions
@@ -10,11 +10,13 @@ namespace Barotrauma
//sprite will be rendered if the condition of the item is below this
public readonly float MaxCondition;
public readonly Sprite Sprite;
public readonly bool FadeIn;
public BrokenItemSprite(Sprite sprite, float maxCondition)
public BrokenItemSprite(Sprite sprite, float maxCondition, bool fadeIn)
{
Sprite = sprite;
MaxCondition = maxCondition;
MaxCondition = MathHelper.Clamp(maxCondition, 0.0f, 100.0f);
FadeIn = fadeIn;
}
}