Make /proc/power_restore recharge APC cells

This commit is contained in:
Patrick Meade
2020-06-28 03:12:38 -05:00
parent 1bc2721083
commit 3392c4019e
+11 -1
View File
@@ -59,7 +59,17 @@
log_and_message_admins("APC Short event shorted out [affected_apc_count] APCs.")
/proc/power_restore(announce=TRUE)
power_restore_quick(announce)
if(announce)
GLOB.event_announcement.Announce("Power has been restored to [station_name()]. We apologize for the inconvenience.", "Power Systems Nominal", new_sound = 'sound/AI/poweron.ogg')
// recharge the APCs
for(var/thing in GLOB.apcs)
var/obj/machinery/power/apc/C = thing
var/area/current_area = get_area(C)
if(!is_station_level(C.z))
continue
if(C.cell)
C.cell.charge = C.cell.maxcharge
/proc/power_restore_quick(announce=TRUE)
if(announce)