- fix: Bugfixes (#18)

* - fix: Fix huds.

* - fix: Cult icon fix

* - fix: Fix terminator missing dead threshold

* - fix: Fix clown ComicSans font

* - fix: Fix airlock missing rsi states

* - fix: Fix double storage removal sound

* - fix: Fix emote
This commit is contained in:
Aviu00
2024-02-02 14:01:41 +09:00
committed by GitHub
parent 876bd21bd2
commit d356aeefff
18 changed files with 67 additions and 44 deletions

View File

@@ -27,30 +27,36 @@ namespace Content.Client._White.EntityHealthBar
private void OnInit(EntityUid uid, ShowWhiteHealthBarsComponent component, ComponentInit args)
{
if (_player.LocalPlayer?.ControlledEntity == uid)
{
_overlayMan.AddOverlay(_overlay);
_overlay.DamageContainers = component.DamageContainers;
}
if (_player.LocalSession?.AttachedEntity != uid)
return;
_overlayMan.AddOverlay(_overlay);
_overlay.DamageContainers = component.DamageContainers;
}
private void OnRemove(EntityUid uid, ShowWhiteHealthBarsComponent component, ComponentRemove args)
{
if (_player.LocalPlayer?.ControlledEntity == uid)
{
_overlayMan.RemoveOverlay(_overlay);
}
if (_player.LocalSession?.AttachedEntity != uid)
return;
_overlayMan.RemoveOverlay(_overlay);
}
private void OnPlayerAttached(EntityUid uid, ShowWhiteHealthBarsComponent component, PlayerAttachedEvent args)
{
if (_player.LocalSession != args.Player)
return;
_overlayMan.AddOverlay(_overlay);
_overlay.DamageContainers = component.DamageContainers;
}
private void OnPlayerDetached(EntityUid uid, ShowWhiteHealthBarsComponent component, PlayerDetachedEvent args)
{
if (_player.LocalSession != args.Player)
return;
_overlayMan.RemoveOverlay(_overlay);
}