diff --git a/Content.Server/Access/Systems/IdCardSystem.cs b/Content.Server/Access/Systems/IdCardSystem.cs index 9cd9976cea90..47388d1a6fd2 100644 --- a/Content.Server/Access/Systems/IdCardSystem.cs +++ b/Content.Server/Access/Systems/IdCardSystem.cs @@ -27,6 +27,9 @@ public override void Initialize() private void OnMicrowaved(EntityUid uid, IdCardComponent component, BeingMicrowavedEvent args) { + if (!component.CanMicrowave) + return; + if (TryComp(uid, out var access)) { float randomPick = _random.NextFloat(); diff --git a/Content.Shared/Access/Components/IdCardComponent.cs b/Content.Shared/Access/Components/IdCardComponent.cs index 39d5d9d27f32..a099cd26d245 100644 --- a/Content.Shared/Access/Components/IdCardComponent.cs +++ b/Content.Shared/Access/Components/IdCardComponent.cs @@ -46,4 +46,7 @@ public sealed partial class IdCardComponent : Component [DataField] public LocId FullNameLocId = "access-id-card-component-owner-full-name-job-title-text"; + + [DataField] + public bool CanMicrowave = true; }