From b0e55ed2a96883a1f1ae8ad4da44789f24561fe6 Mon Sep 17 00:00:00 2001 From: Aviu00 <93730715+Aviu00@users.noreply.github.com> Date: Thu, 5 Oct 2023 19:03:04 +0900 Subject: [PATCH] Evac console emag (#469) --- .../Shuttles/Systems/EmergencyShuttleSystem.Console.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs b/Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs index 29200b7097..b5700385f5 100644 --- a/Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs +++ b/Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs @@ -7,6 +7,7 @@ using Content.Server.UserInterface; using Content.Shared.Access; using Content.Shared.CCVar; using Content.Shared.Database; +using Content.Shared.Emag.Systems; using Content.Shared.Popups; using Content.Shared.Shuttles.BUIStates; using Content.Shared.Shuttles.Events; @@ -91,10 +92,17 @@ public sealed partial class EmergencyShuttleSystem SubscribeLocalEvent(OnEmergencyRepeal); SubscribeLocalEvent(OnEmergencyRepealAll); SubscribeLocalEvent(OnEmergencyOpenAttempt); + SubscribeLocalEvent(OnEmag); // WD SubscribeLocalEvent(OnEscapeUnpaused); } + // ReSharper disable once IdentifierTypo + private void OnEmag(EntityUid uid, EmergencyShuttleConsoleComponent component, ref GotEmaggedEvent args) // WD + { + EarlyLaunch(); + } + private void OnEmergencyOpenAttempt(EntityUid uid, EmergencyShuttleConsoleComponent component, ActivatableUIOpenAttemptEvent args) { // I'm hoping ActivatableUI checks it's open before allowing these messages.