Skip to content

Commit

Permalink
alert
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxoTrystan committed Nov 17, 2024
1 parent 325db03 commit f9940a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Psionics/PsionicsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void OnInit(EntityUid uid, PsionicComponent component, ComponentStartup

private void OnRemove(EntityUid uid, PsionicComponent component, ComponentRemove args)
{
_alerts.ClearAlert(uid, AlertType.Mana);
_alerts.ClearAlert(uid, component.ManaAlert);

if (!HasComp<NpcFactionMemberComponent>(uid))
return;
Expand All @@ -166,7 +166,7 @@ private void OnRemove(EntityUid uid, PsionicComponent component, ComponentRemove
public void UpdateManaAlert(EntityUid uid, PsionicComponent component)
{
var severity = (short) ContentHelpers.RoundToLevels(component.Mana, component.MaxMana, 8);
_alerts.ShowAlert(uid, AlertType.Mana, severity);
_alerts.ShowAlert(uid, component.ManaAlert, severity);
}

private void OnManaUpdate(EntityUid uid, PsionicComponent component, ref OnManaUpdateEvent args)
Expand Down

0 comments on commit f9940a5

Please sign in to comment.