Reregister ghost role when player ghosts while alive (#5956)

* Reregister ghost role when player ghosts while alive

* Add ReregisterOnGhost property
This commit is contained in:
ShadowCommander
2022-01-01 08:48:45 -08:00
committed by GitHub
parent 936c2f1d54
commit 81607d0327
2 changed files with 18 additions and 1 deletions

View File

@@ -56,11 +56,18 @@ namespace Content.Server.Ghost.Roles.Components
}
[ViewVariables(VVAccess.ReadOnly)]
public bool Taken { get; protected set; }
public bool Taken { get; set; }
[ViewVariables]
public uint Identifier { get; set; }
/// <summary>
/// Reregisters the ghost role when the current player ghosts.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("reregister")]
public bool ReregisterOnGhost { get; set; } = true;
protected override void Initialize()
{
base.Initialize();