Alerts Cleanup and API (#39544)
* alert cleanup and API * I expect update loops to be at the top. * Address review * Address review x 2 * Merg my PR * Fix * Update Content.Shared/Alert/AlertsSystem.cs webedit Co-authored-by: Perry Fraser <perryprog@users.noreply.github.com> * FIX THAT TEST FAIL!!!! * Me when I forget to actually give you alerts * Hammedborgar --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: Perry Fraser <perryprog@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5e0e5e045a
commit
d488ca96b2
@@ -390,7 +390,7 @@ public sealed class RespiratorSystem : EntitySystem
|
||||
var organs = _bodySystem.GetBodyOrganEntityComps<LungComponent>((ent, null));
|
||||
foreach (var entity in organs)
|
||||
{
|
||||
_alertsSystem.ShowAlert(ent, entity.Comp1.Alert);
|
||||
_alertsSystem.ShowAlert(ent.Owner, entity.Comp1.Alert);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -400,7 +400,7 @@ public sealed class RespiratorSystem : EntitySystem
|
||||
var organs = _bodySystem.GetBodyOrganEntityComps<LungComponent>((ent, null));
|
||||
foreach (var entity in organs)
|
||||
{
|
||||
_alertsSystem.ClearAlert(ent, entity.Comp1.Alert);
|
||||
_alertsSystem.ClearAlert(ent.Owner, entity.Comp1.Alert);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user