]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix printing $username at round end for head revs when it doesn't have a session...
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Thu, 5 Oct 2023 05:22:30 +0000 (22:22 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2023 05:22:30 +0000 (23:22 -0600)
Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs
Resources/Locale/en-US/game-ticking/game-presets/preset-revolutionary.ftl

index 7efd3a9ce37dcb66e1400b2fde5c463768c83c41..17d9912f4bda7214ae05b84db15000646c9936bd 100644 (file)
@@ -1,30 +1,30 @@
 using System.Linq;
+using Content.Server.Administration.Logs;
+using Content.Server.Antag;
 using Content.Server.Chat.Managers;
+using Content.Server.Flash;
 using Content.Server.GameTicking.Rules.Components;
 using Content.Server.Mind;
+using Content.Server.NPC.Components;
 using Content.Server.NPC.Systems;
+using Content.Server.Popups;
+using Content.Server.Revolutionary.Components;
 using Content.Server.Roles;
+using Content.Server.RoundEnd;
+using Content.Shared.Chat;
+using Content.Shared.Database;
 using Content.Shared.Humanoid;
+using Content.Shared.IdentityManagement;
+using Content.Shared.Mind;
+using Content.Shared.Mindshield.Components;
 using Content.Shared.Mobs;
 using Content.Shared.Mobs.Components;
+using Content.Shared.Mobs.Systems;
 using Content.Shared.Revolutionary.Components;
 using Content.Shared.Roles;
 using Content.Shared.Stunnable;
-using Robust.Shared.Timing;
-using Content.Server.Popups;
-using Content.Server.Revolutionary.Components;
-using Content.Shared.IdentityManagement;
-using Content.Server.Flash;
-using Content.Shared.Mindshield.Components;
-using Content.Server.Administration.Logs;
-using Content.Shared.Database;
-using Content.Server.Antag;
-using Content.Server.NPC.Components;
-using Content.Server.RoundEnd;
-using Content.Shared.Chat;
-using Content.Shared.Mind;
-using Content.Shared.Mobs.Systems;
 using Content.Shared.Zombies;
+using Robust.Shared.Timing;
 
 namespace Content.Server.GameTicking.Rules;
 
@@ -104,13 +104,13 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
                 var username = session?.Name;
                 if (username != null)
                 {
-                    ev.AddLine(Loc.GetString("head-rev-initial",
+                    ev.AddLine(Loc.GetString("head-rev-initial-name-user",
                     ("name", player.Key),
                     ("username", username)));
                 }
                 else
                 {
-                    ev.AddLine(Loc.GetString("head-rev-initial",
+                    ev.AddLine(Loc.GetString("head-rev-initial-name",
                     ("name", player.Key)));
                 }
             }
index 53aea2a20b5aa0fe4b32080d24bc27cb055d784d..2ef3e11ee8e1ccc8c2a42055b7e669811e255791 100644 (file)
@@ -10,7 +10,8 @@ head-rev-role-greeting =
     Beware, this won't work on Security, Command, or those wearing sunglasses.
     Viva la revolución!
 
-head-rev-initial = [color=#5e9cff]{$name}[/color] ([color=gray]{$username}[/color]) was one of the Head Revolutionaries.
+head-rev-initial-name = [color=#5e9cff]{$name}[/color] was one of the Head Revolutionaries.
+head-rev-initial-name-user = [color=#5e9cff]{$name}[/color] ([color=gray]{$username}[/color]) was one of the Head Revolutionaries.
 
 head-rev-initial-count = {$initialCount ->
     [one] There was one Head Revolutionary: