PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -23,7 +23,7 @@ public sealed class RandomTeleportArtifactSystem : EntitySystem
|
||||
private void OnActivate(EntityUid uid, RandomTeleportArtifactComponent component, ArtifactActivatedEvent args)
|
||||
{
|
||||
var xform = Transform(uid);
|
||||
_popup.PopupCoordinates(Loc.GetString("blink-artifact-popup"), xform.Coordinates, Filter.Pvs(uid), PopupType.Medium);
|
||||
_popup.PopupCoordinates(Loc.GetString("blink-artifact-popup"), xform.Coordinates, PopupType.Medium);
|
||||
|
||||
xform.Coordinates = xform.Coordinates.Offset(_random.NextVector2(component.Range));
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public sealed class TelepathicArtifactSystem : EntitySystem
|
||||
var msg = Loc.GetString(msgId);
|
||||
|
||||
// show it as a popup, but only for the victim
|
||||
_popupSystem.PopupEntity(msg, victimUid, Filter.Entities(victimUid));
|
||||
_popupSystem.PopupEntity(msg, victimUid, victimUid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user