Pacifist messages use target's identity name instead of entity name (#29325)

This commit is contained in:
ArkiveDev 2024-06-22 01:19:40 -04:00 committed by null
parent 6ef8cc2fbc
commit 0c37e78dee
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}