Add ability to prevent ghosting (#12906)
* add ability to prevent ghosting to MindComponent.cs * make minds preserve properties in certain transfer scenarios * Revert "make minds preserve properties in certain transfer scenarios" This reverts commit 333cae0db0faf4ef81767b93332271d944c90a0e. * move PreventGhosting to the actual mind
This commit is contained in:
@@ -109,6 +109,13 @@ namespace Content.Server.Mind
|
||||
[ViewVariables]
|
||||
public IEnumerable<Objective> AllObjectives => _objectives;
|
||||
|
||||
/// <summary>
|
||||
/// Prevents user from ghosting out
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("preventGhosting")]
|
||||
public bool PreventGhosting { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The session of the player owning this mind.
|
||||
/// Can be null, in which case the player is currently not logged in.
|
||||
|
||||
Reference in New Issue
Block a user