]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix entities burning to ash not using identity, and bad formatting (#36268)
authorTayrtahn <tayrtahn@gmail.com>
Thu, 3 Apr 2025 02:02:09 +0000 (22:02 -0400)
committerGitHub <noreply@github.com>
Thu, 3 Apr 2025 02:02:09 +0000 (04:02 +0200)
* Make burning to ash use identity

* CAPITALIZE(THE())

Content.Server/Destructible/Thresholds/Behaviors/BurnBodyBehavior.cs
Resources/Locale/en-US/burning/bodyburn.ftl

index f0499dc6a2d1b1df879d1cb8cf52e45ed28a0b04..1d3c1993f970b3e90eb1e51161b85ef1cedc6cb5 100644 (file)
@@ -1,4 +1,5 @@
 using Content.Shared.Body.Components;
+using Content.Shared.IdentityManagement;
 using Content.Shared.Inventory;
 using Content.Shared.Popups;
 using JetBrains.Annotations;
@@ -25,7 +26,8 @@ public sealed partial class BurnBodyBehavior : IThresholdBehavior
             }
         }
 
-        sharedPopupSystem.PopupCoordinates(Loc.GetString("bodyburn-text-others", ("name", bodyId)), transformSystem.GetMoverCoordinates(bodyId), PopupType.LargeCaution);
+        var bodyIdentity = Identity.Entity(bodyId, system.EntityManager);
+        sharedPopupSystem.PopupCoordinates(Loc.GetString("bodyburn-text-others", ("name", bodyIdentity)), transformSystem.GetMoverCoordinates(bodyId), PopupType.LargeCaution);
 
         system.EntityManager.QueueDeleteEntity(bodyId);
     }
index 58b98c09bbbbc9285303c5f1da78a5ddef992861..929b2344cfe47f5eea2a3a362cb4451fd2247590 100644 (file)
@@ -1 +1 @@
-bodyburn-text-others = {$name} burns to ash!
+bodyburn-text-others = {CAPITALIZE(THE($name))} burns to ash!