Fix entities burning to ash not using identity, and bad formatting (#36268)
* Make burning to ash use identity * CAPITALIZE(THE())
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
bodyburn-text-others = {$name} burns to ash!
|
||||
bodyburn-text-others = {CAPITALIZE(THE($name))} burns to ash!
|
||||
|
||||
Reference in New Issue
Block a user