Skip to content

Commit

Permalink
Pacifist messages use target's identity name instead of entity name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkiveDev authored Jun 22, 2024
1 parent bb61f44 commit b5f6aa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Shared/CombatMode/Pacification/PacificationSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ private void ShowPopup(Entity<PacifiedComponent> user, EntityUid target, string
&& !(_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;
}
Expand Down

0 comments on commit b5f6aa0

Please sign in to comment.