Add data field for id card microwave behaviour (#28087)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user