From 6a2264786422b018f7949c42aec78c6865a3cc42 Mon Sep 17 00:00:00 2001 From: Aviu00 Date: Tue, 20 Feb 2024 19:01:56 +0300 Subject: [PATCH] - fix: Fix cultists not being picked. --- Content.Server/_White/Cult/GameRule/CultRuleSystem.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Content.Server/_White/Cult/GameRule/CultRuleSystem.cs b/Content.Server/_White/Cult/GameRule/CultRuleSystem.cs index 68f6882096..103ae5def7 100644 --- a/Content.Server/_White/Cult/GameRule/CultRuleSystem.cs +++ b/Content.Server/_White/Cult/GameRule/CultRuleSystem.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using Content.Server._Miracle.Components; using Content.Server.Actions; using Content.Server.Chat.Managers; @@ -385,16 +385,15 @@ public sealed class CultRuleSystem : GameRuleSystem { var result = new List(); - var minCultists = _cfg.GetCVar(WhiteCVars.CultMinPlayers); var maxCultists = _cfg.GetCVar(WhiteCVars.CultMaxStartingPlayers); - if (prefList.Count < minCultists) + if (prefList.Count < _minimalCultists) { _sawmill.Info("Insufficient ready players to fill up with cultists, stopping the selection."); return result; } - var actualCultistCount = prefList.Count > maxCultists ? maxCultists : minCultists; + var actualCultistCount = prefList.Count > maxCultists ? maxCultists : _minimalCultists; for (var i = 0; i < actualCultistCount; i++) {