Fix for death timer resetting after returning to body. (#5174)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user