Hardsuit and EVA helmets allow using internals without a mask (#22716)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Content.Server.Atmos.Components
|
||||
/// Tool is functional only in allowed slots
|
||||
/// </summary>
|
||||
[DataField("allowedSlots")]
|
||||
public SlotFlags AllowedSlots = SlotFlags.MASK;
|
||||
public SlotFlags AllowedSlots = SlotFlags.MASK | SlotFlags.HEAD;
|
||||
public bool IsFunctional;
|
||||
public EntityUid? ConnectedInternalsEntity;
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user