From 521dd23756cac1c96093707c53b411801559ef71 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 5 Nov 2023 22:06:54 -0800 Subject: [PATCH] inop --- code/game/machinery/fusion_engine.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/machinery/fusion_engine.dm b/code/game/machinery/fusion_engine.dm index b6d6703ca1c0..8e3097ef52d1 100644 --- a/code/game/machinery/fusion_engine.dm +++ b/code/game/machinery/fusion_engine.dm @@ -287,6 +287,9 @@ if(!do_after(user, 1.5 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD)) return + if(inoperable()) + return + to_chat(user, SPAN_WARNING("You finish overloading the safeties on [src].")) set_overloading(TRUE) log_game("[key_name(user)] has overloaded a generator.") @@ -296,6 +299,9 @@ if(!do_after(user, 1.5 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD)) return + if(inoperable()) + return + to_chat(user, SPAN_WARNING("You finish restoring the safeties on [src].")) log_game("[key_name(user)] has restored the safeties of a generator.") set_overloading(FALSE)