Co-authored-by: coolmankid12345 <coolmankid12345@users.noreply.github.com>
This commit is contained in:
coolmankid12345
2023-10-19 20:50:44 -04:00
committed by GitHub
parent aeaabc5687
commit 69b38efaec

View File

@@ -144,8 +144,8 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
{ {
_antagSelection.EligiblePlayers(comp.HeadRevPrototypeId, comp.MaxHeadRevs, comp.PlayersPerHeadRev, comp.HeadRevStartSound, _antagSelection.EligiblePlayers(comp.HeadRevPrototypeId, comp.MaxHeadRevs, comp.PlayersPerHeadRev, comp.HeadRevStartSound,
"head-rev-role-greeting", "#5e9cff", out var chosen); "head-rev-role-greeting", "#5e9cff", out var chosen);
if (!chosen.Any()) if (chosen.Any())
GiveHeadRev(chosen, comp.RevPrototypeId, comp); GiveHeadRev(chosen, comp.HeadRevPrototypeId, comp);
else else
{ {
_chatManager.SendAdminAnnouncement(Loc.GetString("rev-no-heads")); _chatManager.SendAdminAnnouncement(Loc.GetString("rev-no-heads"));