diff --git a/Content.Server/Antag/AntagSelectionSystem.cs b/Content.Server/Antag/AntagSelectionSystem.cs index f1ca181756..5e323f5ab8 100644 --- a/Content.Server/Antag/AntagSelectionSystem.cs +++ b/Content.Server/Antag/AntagSelectionSystem.cs @@ -116,14 +116,13 @@ public sealed class AntagSelectionSystem : GameRuleSystem var antags = Math.Clamp(allPlayers.Count / antagsPerPlayer, 1, maxAntags); for (var antag = 0; antag < antags; antag++) { - IPlayerSession chosenPlayer; + IPlayerSession chosenPlayer = null!; if (prefList.Count == 0) { if (playerList.Count == 0) { break; } - chosenPlayer = _random.PickAndTake(playerList); } else { diff --git a/Content.Server/GameTicking/Rules/Components/RevolutionaryRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/RevolutionaryRuleComponent.cs index f015f8bd57..7d036c615b 100644 --- a/Content.Server/GameTicking/Rules/Components/RevolutionaryRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/RevolutionaryRuleComponent.cs @@ -29,6 +29,9 @@ public sealed partial class RevolutionaryRuleComponent : Component [DataField] public Dictionary HeadRevs = new(); + [DataField] + public ProtoId HeadRevPrototypeId = "HeadRev"; + [DataField] public ProtoId RevPrototypeId = "Rev"; diff --git a/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs b/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs index d6195aaa54..54b45f59e9 100644 --- a/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs @@ -142,9 +142,14 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem