PopupSystem public methods rejig (#12830)

This commit is contained in:
Leon Friedrich
2022-12-19 10:41:47 +13:00
committed by GitHub
parent e459452333
commit 881a2b2ece
164 changed files with 721 additions and 631 deletions

View File

@@ -176,7 +176,7 @@ public sealed class BloodstreamSystem : EntitySystem
// We'll play a special sound and popup for feedback.
SoundSystem.Play(component.BloodHealedSound.GetSound(), Filter.Pvs(uid), uid, AudioParams.Default);
_popupSystem.PopupEntity(Loc.GetString("bloodstream-component-wounds-cauterized"), uid,
Filter.Entities(uid), PopupType.Medium);
uid, PopupType.Medium);
; }
}

View File

@@ -74,7 +74,7 @@ public sealed class InternalsSystem : EntitySystem
// If they're not on then check if we have a mask to use
if (internals.BreathToolEntity == null)
{
_popupSystem.PopupEntity(Loc.GetString("internals-no-breath-tool"), uid, Filter.Entities(user));
_popupSystem.PopupEntity(Loc.GetString("internals-no-breath-tool"), uid, user);
return;
}
@@ -82,7 +82,7 @@ public sealed class InternalsSystem : EntitySystem
if (tank == null)
{
_popupSystem.PopupEntity(Loc.GetString("internals-no-tank"), uid, Filter.Entities(user));
_popupSystem.PopupEntity(Loc.GetString("internals-no-tank"), uid, user);
return;
}

View File

@@ -77,7 +77,7 @@ namespace Content.Server.Body.Systems
if (_gameTiming.CurTime >= respirator.LastGaspPopupTime + respirator.GaspPopupCooldown)
{
respirator.LastGaspPopupTime = _gameTiming.CurTime;
_popupSystem.PopupEntity(Loc.GetString("lung-behavior-gasp"), uid, Filter.Pvs(uid));
_popupSystem.PopupEntity(Loc.GetString("lung-behavior-gasp"), uid);
}
TakeSuffocationDamage(uid, respirator);