Add microwave-nukedisk interaction (#36114)
* Add microwave-nukedisk interaction * popup * Fix UninitializedSaveTest
This commit is contained in:
@@ -21,8 +21,7 @@ namespace Content.Server.Nuke
|
||||
/// <summary>
|
||||
/// Default bomb timer value in seconds.
|
||||
/// </summary>
|
||||
[DataField("timer")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField]
|
||||
public int Timer = 300;
|
||||
|
||||
/// <summary>
|
||||
@@ -36,7 +35,7 @@ namespace Content.Server.Nuke
|
||||
/// How long until the bomb can arm again after deactivation.
|
||||
/// Used to prevent announcements spam.
|
||||
/// </summary>
|
||||
[DataField("cooldown")]
|
||||
[DataField]
|
||||
public int Cooldown = 30;
|
||||
|
||||
/// <summary>
|
||||
@@ -143,32 +142,32 @@ namespace Content.Server.Nuke
|
||||
/// </summary>
|
||||
public (MapId, EntityUid?)? OriginMapGrid;
|
||||
|
||||
[DataField("codeLength")] public int CodeLength = 6;
|
||||
[ViewVariables] public string Code = string.Empty;
|
||||
[DataField] public int CodeLength = 6;
|
||||
[DataField] public string Code = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Time until explosion in seconds.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField]
|
||||
public float RemainingTime;
|
||||
|
||||
/// <summary>
|
||||
/// Time until bomb cooldown will expire in seconds.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField]
|
||||
public float CooldownTime;
|
||||
|
||||
/// <summary>
|
||||
/// Current nuclear code buffer. Entered manually by players.
|
||||
/// If valid it will allow arm/disarm bomb.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField]
|
||||
public string EnteredCode = "";
|
||||
|
||||
/// <summary>
|
||||
/// Current status of a nuclear bomb.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField]
|
||||
public NukeStatus Status = NukeStatus.AWAIT_DISK;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user