Add data field for id card microwave behaviour (#28087)

This commit is contained in:
DrSmugleaf
2024-05-17 01:48:22 -07:00
committed by GitHub
parent fd8b195c4e
commit de7e1b33dd
2 changed files with 6 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ public sealed class IdCardSystem : SharedIdCardSystem
private void OnMicrowaved(EntityUid uid, IdCardComponent component, BeingMicrowavedEvent args)
{
if (!component.CanMicrowave)
return;
if (TryComp<AccessComponent>(uid, out var access))
{
float randomPick = _random.NextFloat();

View File

@@ -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;
}