Fixes Restore Power Routine

This commit is contained in:
adrermail@gmail.com
2023-02-19 20:33:54 +01:00
parent 843dbf8769
commit 5e17dc33f2
2 changed files with 3 additions and 3 deletions
@@ -45,6 +45,7 @@
aiRestorePowerRoutine = 0
update_sight()
to_chat(src, "Alert cancelled. Power has been restored[aiRestorePowerRoutine == 2 ? "without our assistance" : ""].")
apc_override = FALSE
else
if(lacks_power())
if(!aiRestorePowerRoutine)
@@ -121,9 +122,8 @@
to_chat(src, "Receiving control information from APC.")
sleep(2)
//bring up APC dialog
apc_override = 1
apc_override = TRUE
theAPC.attack_ai(src)
apc_override = 0
aiRestorePowerRoutine = 3
sleep(50)
theAPC = null
+1 -1
View File
@@ -66,7 +66,7 @@
return STATUS_INTERACTIVE
/mob/living/silicon/ai/shared_ui_interaction(src_object)
if(lacks_power()) // Disable UIs if the AI is unpowered.
if(lacks_power() && !apc_override) // Disable UIs if the AI is unpowered.
return STATUS_DISABLED
return ..()