Fix for death timer resetting after returning to body. (#5174)

This commit is contained in:
Matt
2021-11-11 11:17:23 -04:00
committed by GitHub
parent 1b01247c5f
commit 81dc92ce9b
3 changed files with 20 additions and 0 deletions

View File

@@ -63,6 +63,12 @@ namespace Content.Server.Mind
[ViewVariables(VVAccess.ReadWrite)]
public string? CharacterName { get; set; }
/// <summary>
/// The time of death for this Mind.
/// Can be null - will be null if the Mind is not considered "dead".
/// </summary>
[ViewVariables] public TimeSpan? TimeOfDeath { get; set; } = null;
/// <summary>
/// The component currently owned by this mind.
/// Can be null.
@@ -116,6 +122,7 @@ namespace Content.Server.Mind
/// </summary>
[ViewVariables]
public bool CharacterDeadIC => CharacterDeadPhysically;
/// <summary>
/// True if the OwnedEntity of this mind is physically dead.
/// This specific definition, as opposed to CharacterDeadIC, is used to determine if ghosting should allow return.