list codewords on traitor round end (#14810)

This commit is contained in:
deltanedas
2023-03-23 16:29:39 +00:00
committed by GitHub
parent e43f154d23
commit 47d5ec20ce
2 changed files with 6 additions and 0 deletions

View File

@@ -322,6 +322,8 @@ public sealed class TraitorRuleSystem : GameRuleSystem
var result = Loc.GetString("traitor-round-end-result", ("traitorCount", Traitors.Count)); var result = Loc.GetString("traitor-round-end-result", ("traitorCount", Traitors.Count));
result += "\n" + Loc.GetString("traitor-round-end-codewords", ("codewords", string.Join(", ", Codewords))) + "\n";
foreach (var traitor in Traitors) foreach (var traitor in Traitors)
{ {
var name = traitor.Mind.CharacterName; var name = traitor.Mind.CharacterName;

View File

@@ -7,6 +7,10 @@ traitor-round-end-result = {$traitorCount ->
*[other] There were {$traitorCount} traitors. *[other] There were {$traitorCount} traitors.
} }
traitor-round-end-codewords =
The codewords were:
[color=White]{$codewords}[/color].
# Shown at the end of a round of Traitor # Shown at the end of a round of Traitor
traitor-user-was-a-traitor = [color=gray]{$user}[/color] was a traitor. traitor-user-was-a-traitor = [color=gray]{$user}[/color] was a traitor.
traitor-user-was-a-traitor-named = [color=White]{$name}[/color] ([color=gray]{$user}[/color]) was a traitor. traitor-user-was-a-traitor-named = [color=White]{$name}[/color] ([color=gray]{$user}[/color]) was a traitor.