CatStation/Content.Shared/Warps/WarpPointSystem.cs
eoineoineoin c7300798f6
Fix AI eye warp examine text (#43650)
* Fix AI eye warp examine text

* Update Content.Shared/Warps/WarpPointSystem.cs

Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>

* Missed FTL file, whoops

---------

Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
2026-04-19 17:38:07 +00:00

22 lines
675 B
C#

using Content.Shared.Examine;
using Content.Shared.Ghost;
namespace Content.Shared.Warps;
public sealed class WarpPointSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<WarpPointComponent, ExaminedEvent>(OnWarpPointExamine);
}
private void OnWarpPointExamine(EntityUid uid, WarpPointComponent component, ExaminedEvent args)
{
if (!HasComp<GhostComponent>(args.Examiner))
return;
var loc = component.Location == null ? Name(uid) : component.Location;
args.PushText(Loc.GetString("warp-point-component-on-examine-success", ("location", loc)));
}
}