Skip to content

Commit fd97bba

Browse files
committed
Make ShowHealthIconsSystem respect their damage container whitelist
1 parent e6a1e85 commit fd97bba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Content.Client/Overlays/ShowHealthIconsSystem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ private IReadOnlyList<HealthIconPrototype> DecideHealthIcons(Entity<DamageableCo
7676
var result = new List<HealthIconPrototype>();
7777

7878
// Here you could check health status, diseases, mind status, etc. and pick a good icon, or multiple depending on whatever.
79+
/* Starlight - Respect icon display configuration
7980
if (damageableComponent?.DamageContainerID == "Biological")
8081
{
82+
*/
8183
if (TryComp<MobStateComponent>(entity, out var state))
8284
{
8385
// Since there is no MobState for a rotting mob, we have to deal with this case first.
@@ -86,7 +88,9 @@ private IReadOnlyList<HealthIconPrototype> DecideHealthIcons(Entity<DamageableCo
8688
else if (damageableComponent.HealthIcons.TryGetValue(state.CurrentState, out var value) && _prototypeMan.Resolve(value, out var icon))
8789
result.Add(icon);
8890
}
91+
/*
8992
}
93+
*/
9094

9195
return result;
9296
}

0 commit comments

Comments
 (0)