[Fix] move ninja objectives into NinjaRole (#15490)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -8,7 +8,6 @@ namespace Content.Shared.Ninja.Components;
|
||||
/// Component placed on a mob to make it a space ninja, able to use suit and glove powers.
|
||||
/// Contains ids of all ninja equipment.
|
||||
/// </summary>
|
||||
// TODO: Contains objective related stuff, might want to move it out somehow
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[Access(typeof(SharedNinjaSystem))]
|
||||
public sealed partial class NinjaComponent : Component
|
||||
@@ -16,6 +15,7 @@ public sealed partial class NinjaComponent : Component
|
||||
/// <summary>
|
||||
/// Grid entity of the station the ninja was spawned around. Set if spawned naturally by the event.
|
||||
/// </summary>
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public EntityUid? StationGrid;
|
||||
|
||||
/// <summary>
|
||||
@@ -35,35 +35,4 @@ public sealed partial class NinjaComponent : Component
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityUid? Katana = null;
|
||||
|
||||
/// <summary>
|
||||
/// Number of doors that have been doorjacked, used for objective
|
||||
/// </summary>
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public int DoorsJacked = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Research nodes that have been downloaded, used for objective
|
||||
/// </summary>
|
||||
// TODO: client doesn't need to know what nodes are downloaded, just how many
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public HashSet<string> DownloadedNodes = new();
|
||||
|
||||
/// <summary>
|
||||
/// Warp point that the spider charge has to target
|
||||
/// </summary>
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public EntityUid? SpiderChargeTarget = null;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the spider charge has been detonated on the target, used for objective
|
||||
/// </summary>
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public bool SpiderChargeDetonated;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the comms console has been hacked, used for objective
|
||||
/// </summary>
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public bool CalledInThreat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user