Fixes Restore Power Routine (#21266)

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
Adrer
2023-06-14 22:06:25 +02:00
committed by GitHub
parent 8d61d0c940
commit 268f44a545
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 ..()