using Content.Server.Shuttles.Events; namespace Content.Server.Shipyard; public sealed class MapDeleterShuttleSystem : EntitySystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnFTLStarted); } private void OnFTLStarted(Entity ent, ref FTLStartedEvent args) { if (ent.Comp.Enabled) Del(args.FromMapUid); RemComp(ent); // prevent the shuttle becoming a WMD } public void Enable(EntityUid shuttle) { EnsureComp(shuttle).Enabled = true; } }