Gives all nuclear bombs unique codes (#11665)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Flipp Syder
2022-10-09 12:28:08 -07:00
committed by GitHub
parent 410983c2d4
commit 8838f8be24
9 changed files with 181 additions and 102 deletions

View File

@@ -3,6 +3,7 @@ using Content.Shared.Containers.ItemSlots;
using Content.Shared.Explosion;
using Content.Shared.Nuke;
using Robust.Shared.Audio;
using Robust.Shared.Map;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Nuke
@@ -121,6 +122,22 @@ namespace Content.Server.Nuke
public bool Exploded;
#endregion
/// <summary>
/// Origin station of this bomb, if it exists.
/// If this doesn't exist, then the origin grid and map will be filled in, instead.
/// </summary>
public EntityUid? OriginStation;
/// <summary>
/// Origin map and grid of this bomb.
/// If a station wasn't tied to a given grid when the bomb was spawned,
/// this will be filled in instead.
/// </summary>
public (MapId, EntityUid?)? OriginMapGrid;
[DataField("codeLength")] public int CodeLength = 6;
[ViewVariables] public string Code = string.Empty;
/// <summary>
/// Time until explosion in seconds.
/// </summary>