]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Don't show toggle internals verb if no breath tools are found while off (#30622)
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Sun, 4 Aug 2024 03:34:55 +0000 (20:34 -0700)
committerGitHub <noreply@github.com>
Sun, 4 Aug 2024 03:34:55 +0000 (13:34 +1000)
* Don't show toggle internals verb if no breath tools are found

* only if not working

Content.Server/Body/Systems/InternalsSystem.cs

index 10ebd934aa46035af0ca83094545a729a5929bcb..e352b0a58a17a169693d6478e440c58c1b24d7d7 100644 (file)
@@ -72,6 +72,9 @@ public sealed class InternalsSystem : EntitySystem
         if (!args.CanAccess || !args.CanInteract || args.Hands is null)
             return;
 
+        if (!AreInternalsWorking(ent) && ent.Comp.BreathTools.Count == 0)
+            return;
+
         var user = args.User;
 
         InteractionVerb verb = new()