From: ArkiveDev <95712736+ArkiveDev@users.noreply.github.com> Date: Sat, 22 Jun 2024 05:19:40 +0000 (-0400) Subject: Pacifist messages use target's identity name instead of entity name (#29325) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b5f6aa0c9d2b3264199a4160ba86f5282c11a316;p=space-station-14.git Pacifist messages use target's identity name instead of entity name (#29325) --- diff --git a/Content.Shared/CombatMode/Pacification/PacificationSystem.cs b/Content.Shared/CombatMode/Pacification/PacificationSystem.cs index a927e1a697..14507ce1f5 100644 --- a/Content.Shared/CombatMode/Pacification/PacificationSystem.cs +++ b/Content.Shared/CombatMode/Pacification/PacificationSystem.cs @@ -54,7 +54,8 @@ public sealed class PacificationSystem : EntitySystem && !(_timing.CurTime > user.Comp.NextPopupTime)) return; - _popup.PopupClient(Loc.GetString(reason, ("entity", target)), user, user); + var targetName = Identity.Entity(target, EntityManager); + _popup.PopupClient(Loc.GetString(reason, ("entity", targetName)), user, user); user.Comp.NextPopupTime = _timing.CurTime + user.Comp.PopupCooldown; user.Comp.LastAttackedEntity = target; }