From 0e18d54cf731f99b5341bbc78aed14252bd399e9 Mon Sep 17 00:00:00 2001 From: "Mr. 27" <45323883+Dutch-VanDerLinde@users.noreply.github.com> Date: Wed, 3 Jan 2024 03:32:38 -0500 Subject: [PATCH] head revolutionaries are now blue (#23432) * inital2 * raemove break --- .../Rules/RevolutionaryRuleSystem.cs | 25 ++++++++++++------- .../game-presets/preset-revolutionary.ftl | 9 +++++-- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs b/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs index 2759e93118..d8d3177267 100644 --- a/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs @@ -7,7 +7,6 @@ using Content.Server.GameTicking.Rules.Components; using Content.Server.Mind; using Content.Server.NPC.Components; using Content.Server.NPC.Systems; -using Content.Server.Objectives; using Content.Server.Popups; using Content.Server.Revolutionary.Components; using Content.Server.Roles; @@ -43,7 +42,6 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem(player)?.ConvertedCount ?? 0; - ev.AddLine(Loc.GetString("rev-headrev-player", ("title", title), ("count", count))); + var count = CompOrNull(player.Value)?.ConvertedCount ?? 0; + + _mind.TryGetSession(player.Value, out var session); + var username = session?.Name; + if (username != null) + { + ev.AddLine(Loc.GetString("rev-headrev-name-user", + ("name", player.Key), + ("username", username), ("count", count))); + } + else + { + ev.AddLine(Loc.GetString("rev-headrev-name", + ("name", player.Key), ("count", count))); + } // TODO: someone suggested listing all alive? revs maybe implement at some point } diff --git a/Resources/Locale/en-US/game-ticking/game-presets/preset-revolutionary.ftl b/Resources/Locale/en-US/game-ticking/game-presets/preset-revolutionary.ftl index ba2e3e554a..4ace8f96d2 100644 --- a/Resources/Locale/en-US/game-ticking/game-presets/preset-revolutionary.ftl +++ b/Resources/Locale/en-US/game-ticking/game-presets/preset-revolutionary.ftl @@ -55,7 +55,12 @@ rev-headrev-count = {$initialCount -> *[other] There were {$initialCount} Head Revolutionaries: } -rev-headrev-player = {$title} converted {$count} {$count -> +rev-headrev-name-user = [color=#5e9cff]{$name}[/color] ([color=gray]{$username}[/color]) converted {$count} {$count -> [one] person *[other] people -}. +} + +rev-headrev-name = [color=#5e9cff]{$name}[/color] converted {$count} {$count -> + [one] person + *[other] people +}