Cyborg health alert and damage examining (#20084)
* Option for alt health alert and no overlay * Fancy borg health indicator * Borg damage examine localization * EENENGHHHH ENNNGHHH * Requested code changes * Legal sound * Revert "Legal sound" This reverts commit 35715c88898aeb78dfe800319852c230395fdd7e. I misunderstood what Sloth meant * Annoying buzzer is back
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Client.Alerts;
|
||||
using Content.Client.Alerts;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Mobs;
|
||||
@@ -79,9 +79,15 @@ public sealed class DamageOverlayUiController : UIController
|
||||
damageable == null && !EntityManager.TryGetComponent(entity, out damageable))
|
||||
return;
|
||||
|
||||
|
||||
if (!_mobThresholdSystem.TryGetIncapThreshold(entity, out var foundThreshold, thresholds))
|
||||
return; //this entity cannot die or crit!!
|
||||
|
||||
if (!thresholds.ShowOverlays)
|
||||
{
|
||||
ClearOverlay();
|
||||
return; //this entity intentionally has no overlays
|
||||
}
|
||||
|
||||
var critThreshold = foundThreshold.Value;
|
||||
_overlay.State = mobState.CurrentState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user