(ba5343957) Button for hiding personal inventory slots

This commit is contained in:
Joonas Rikkonen
2019-04-16 17:08:58 +03:00
parent c361edfb8b
commit f667455659
3 changed files with 142 additions and 30 deletions
@@ -587,7 +587,7 @@ namespace Barotrauma
var affliction = GetAllAfflictions(a => a.Prefab.IndicatorLimb != LimbType.None)
.OrderByDescending(a => a.DamagePerSecond)
.ThenByDescending(a => a.Strength).FirstOrDefault();
if (affliction.DamagePerSecond > 0 || affliction.Strength > 0)
if (affliction.DamagePerSecond > 0 && affliction.Strength > 0)
{
var limbHealth = GetMathingLimbHealth(affliction);
if (limbHealth != null)