mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Fixes Restore Power Routine (#21266)
Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user