Execution System uses the identity of an entity; added "the" to execution message (#32536)
* Exec.System now uses IdentityManagement; added the where necessary * Included attacker in check for Identity --------- Co-authored-by: Celene <maurice_riepert94@web.de>
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.CombatMode;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.DoAfter;
|
||||
using Content.Shared.IdentityManagement;
|
||||
using Content.Shared.Mobs.Components;
|
||||
using Content.Shared.Mobs.Systems;
|
||||
using Content.Shared.Popups;
|
||||
@@ -155,7 +156,7 @@ public sealed class SharedExecutionSystem : EntitySystem
|
||||
if (predict)
|
||||
{
|
||||
_popup.PopupClient(
|
||||
Loc.GetString(locString, ("attacker", attacker), ("victim", victim), ("weapon", weapon)),
|
||||
Loc.GetString(locString, ("attacker", Identity.Entity(attacker, EntityManager)), ("victim", Identity.Entity(victim, EntityManager)), ("weapon", weapon)),
|
||||
attacker,
|
||||
attacker,
|
||||
PopupType.MediumCaution
|
||||
@@ -164,7 +165,7 @@ public sealed class SharedExecutionSystem : EntitySystem
|
||||
else
|
||||
{
|
||||
_popup.PopupEntity(
|
||||
Loc.GetString(locString, ("attacker", attacker), ("victim", victim), ("weapon", weapon)),
|
||||
Loc.GetString(locString, ("attacker", Identity.Entity(attacker, EntityManager)), ("victim", Identity.Entity(victim, EntityManager)), ("weapon", weapon)),
|
||||
attacker,
|
||||
attacker,
|
||||
PopupType.MediumCaution
|
||||
@@ -175,7 +176,7 @@ public sealed class SharedExecutionSystem : EntitySystem
|
||||
private void ShowExecutionExternalPopup(string locString, EntityUid attacker, EntityUid victim, EntityUid weapon)
|
||||
{
|
||||
_popup.PopupEntity(
|
||||
Loc.GetString(locString, ("attacker", attacker), ("victim", victim), ("weapon", weapon)),
|
||||
Loc.GetString(locString, ("attacker", Identity.Entity(attacker, EntityManager)), ("victim", Identity.Entity(victim, EntityManager)), ("weapon", weapon)),
|
||||
attacker,
|
||||
Filter.PvsExcept(attacker),
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user