Hardsuit and EVA helmets allow using internals without a mask (#22716)

This commit is contained in:
SapphicOverload
2023-12-18 21:50:06 -05:00
committed by GitHub
parent 10142c3a2e
commit 176f833ea9
4 changed files with 39 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ public sealed class LungSystem : EntitySystem
private void OnGotEquipped(EntityUid uid, BreathToolComponent component, GotEquippedEvent args)
{
if ((args.SlotFlags & component.AllowedSlots) != component.AllowedSlots) return;
if ((args.SlotFlags & component.AllowedSlots) == 0) return;
component.IsFunctional = true;
if (TryComp(args.Equipee, out InternalsComponent? internals))