Split codewords into its own system (#37928)
* Split codewords into its own system * Fix admin log * Nuke unused code * Fix formatting errors * Fix tests * Make the codeword system add itself if called when not active * Put comment in right place. * Review: Rename prototypes * Review: Make codewords serializable * Fix build * Reviews: Change the system to not be a gamerule. * Fix YAML Linter * Fix test fail * Remove unused import
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
using Content.Server.Codewords;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Traitor.Components;
|
||||
|
||||
/// <summary>
|
||||
@@ -6,6 +9,18 @@ namespace Content.Server.Traitor.Components;
|
||||
[RegisterComponent]
|
||||
public sealed partial class TraitorCodePaperComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The faction to get codewords for.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public ProtoId<CodewordFactionPrototype> CodewordFaction = "Traitor";
|
||||
|
||||
/// <summary>
|
||||
/// The generator to use for the fake words.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public ProtoId<CodewordGeneratorPrototype> CodewordGenerator = "TraitorCodewordGenerator";
|
||||
|
||||
/// <summary>
|
||||
/// The number of codewords that should be generated on this paper.
|
||||
/// Will not extend past the max number of available codewords.
|
||||
|
||||
Reference in New Issue
Block a user