6
2025-08-05 10:00:54 +03:00

25 lines
739 B
C#

using Content.Shared._NF.Shipyard.Components;
using Content.Shared.Examine;
using Content.Server._NF.Shipyard.Systems;
namespace Content.Shared._NF.Shipyard;
public sealed partial class ShuttleDeedSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ShuttleDeedComponent, ExaminedEvent>(OnExamined);
}
private void OnExamined(Entity<ShuttleDeedComponent> ent, ref ExaminedEvent args)
{
var comp = ent.Comp;
if (!string.IsNullOrEmpty(comp.ShuttleName))
{
var fullName = ShipyardSystem.GetFullName(comp);
args.PushMarkup(Loc.GetString("shuttle-deed-examine-text", ("shipname", fullName)));
}
}
}