From: Errant <35878406+Errant-4@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:18:28 +0000 (+0100) Subject: Don't show Reinforcement codewords on round end (#33181) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=da19abdc76980660bc75e062575b99b7fe4d4d04;p=space-station-14.git Don't show Reinforcement codewords on round end (#33181) Don't show unused codeword sets --- diff --git a/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs b/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs index 1987613763..8df6ed1098 100644 --- a/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs @@ -172,7 +172,8 @@ public sealed class TraitorRuleSystem : GameRuleSystem // TODO: AntagCodewordsComponent private void OnObjectivesTextPrepend(EntityUid uid, TraitorRuleComponent comp, ref ObjectivesTextPrependEvent args) { - args.Text += "\n" + Loc.GetString("traitor-round-end-codewords", ("codewords", string.Join(", ", comp.Codewords))); + if(comp.GiveCodewords) + args.Text += "\n" + Loc.GetString("traitor-round-end-codewords", ("codewords", string.Join(", ", comp.Codewords))); } // TODO: figure out how to handle this? add priority to briefing event?