]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix loc issues with suicide popup (#36284)
authorTayrtahn <tayrtahn@gmail.com>
Fri, 4 Apr 2025 09:41:21 +0000 (05:41 -0400)
committerGitHub <noreply@github.com>
Fri, 4 Apr 2025 09:41:21 +0000 (11:41 +0200)
Content.Server/Chat/SuicideSystem.cs
Resources/Locale/en-US/chat/commands/suicide-command.ftl

index 4eda532385409588cf39d035a36b8852c6b23c1e..497c9a1fe4341a75f64aa1b5b5f432bf8a7faf73 100644 (file)
@@ -4,6 +4,7 @@ using Content.Shared.Chat;
 using Content.Shared.Damage;
 using Content.Shared.Database;
 using Content.Shared.Hands.Components;
+using Content.Shared.IdentityManagement;
 using Content.Shared.Interaction.Events;
 using Content.Shared.Item;
 using Content.Shared.Mind;
@@ -149,7 +150,7 @@ public sealed class SuicideSystem : EntitySystem
         if (args.Handled)
             return;
 
-        var othersMessage = Loc.GetString("suicide-command-default-text-others", ("name", victim));
+        var othersMessage = Loc.GetString("suicide-command-default-text-others", ("name", Identity.Entity(victim, EntityManager)));
         _popup.PopupEntity(othersMessage, victim, Filter.PvsExcept(victim), true);
 
         var selfMessage = Loc.GetString("suicide-command-default-text-self");
index 36e861169b873ce4841091b6b27b462842ead5d1..4b2fb5c00e5dcdaafa9d80affc98a473a468a27f 100644 (file)
@@ -3,7 +3,7 @@ suicide-command-help-text = The suicide command gives you a quick way out of a r
                             The method varies, first it will attempt to use the held item in your active hand.
                             If that fails, it will attempt to use an object in the environment.
                             Finally, if neither of the above worked, you will die by biting your tongue.
-suicide-command-default-text-others = {$name} is attempting to bite their own tongue!
+suicide-command-default-text-others = {CAPITALIZE(THE($name))} is attempting to bite {POSS-ADJ($name)} own tongue!
 suicide-command-default-text-self = You attempt to bite your own tongue!
 suicide-command-already-dead = You can't suicide. You're dead.
 suicide-command-no-mind = You have no mind!