]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Don't show Reinforcement codewords on round end (#33181)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Tue, 5 Nov 2024 18:18:28 +0000 (19:18 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Nov 2024 18:18:28 +0000 (19:18 +0100)
Don't show unused codeword sets

Content.Server/GameTicking/Rules/TraitorRuleSystem.cs

index 1987613763b5f2dec5a7d3789d1a940fef06e20a..8df6ed1098a55fb044601be3a85ef872d2c4ea65 100644 (file)
@@ -172,7 +172,8 @@ public sealed class TraitorRuleSystem : GameRuleSystem<TraitorRuleComponent>
     // 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?