Add data field for id card microwave behaviour (#28087)
This commit is contained in:
parent
9bd7984feb
commit
2cef141f94
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue