Use distinct action labels for toggling internals on and off. (#36073)

* Use distinct action labels for toggling internals on and off.

* Implement specific actions for enabling/disabling internals

Avoids potential confusing race conditions where two people might perform the "Toggle Internals On" action an the same person,
which would have jsut toggled twice.

* If no gas tank, will give popup

---------

Co-authored-by: beck-thompson <beck314159@hotmail.com>
This commit is contained in:
Ciarán Walsh
2025-06-02 12:09:45 +01:00
committed by GitHub
parent 8f1c624075
commit d83f393fa4
4 changed files with 78 additions and 40 deletions

View File

@@ -50,7 +50,7 @@ public sealed class InternalsSystem : SharedInternalsSystem
if (!_respirator.CanMetabolizeGas(uid, tank.Value.Comp.Air))
return;
ToggleInternals(uid, uid, force: false, component);
ToggleInternals(uid, uid, force: false, component, ToggleMode.On);
}
private void OnInhaleLocation(Entity<InternalsComponent> ent, ref InhaleLocationEvent args)