Cryogenic Sleep Units (#24096)
* Cryogenic sleep units * pause map support * no more body deletion * Cryogenic Storage Units * boowomp * no more emag, no more dropping present people
This commit is contained in:
@@ -63,6 +63,12 @@ public sealed partial class AccessReaderComponent : Component
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public int AccessLogLimit = 20;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not emag interactions have an effect on this.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool BreakOnEmag = true;
|
||||
}
|
||||
|
||||
[DataDefinition, Serializable, NetSerializable]
|
||||
|
||||
@@ -56,6 +56,7 @@ public sealed partial class IdCardConsoleComponent : Component
|
||||
"ChiefEngineer",
|
||||
"ChiefMedicalOfficer",
|
||||
"Command",
|
||||
"Cryogenics",
|
||||
"Engineering",
|
||||
"External",
|
||||
"HeadOfPersonnel",
|
||||
|
||||
@@ -76,6 +76,8 @@ public sealed class AccessReaderSystem : EntitySystem
|
||||
|
||||
private void OnEmagged(EntityUid uid, AccessReaderComponent reader, ref GotEmaggedEvent args)
|
||||
{
|
||||
if (!reader.BreakOnEmag)
|
||||
return;
|
||||
args.Handled = true;
|
||||
reader.Enabled = false;
|
||||
reader.AccessLog.Clear();
|
||||
|
||||
Reference in New Issue
Block a user