From 72aac4866235ad34523bc2b8992d982efb8fa73e Mon Sep 17 00:00:00 2001 From: Lancer411 Date: Tue, 12 Aug 2014 22:05:28 +0800 Subject: [PATCH] Checks for SMES Z level at power_failure.dm Little fix which checks Z level of SMES before drying it up at grid_check event. --- code/game/gamemodes/events/power_failure.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/events/power_failure.dm b/code/game/gamemodes/events/power_failure.dm index 3f949aba064..740696a74f5 100644 --- a/code/game/gamemodes/events/power_failure.dm +++ b/code/game/gamemodes/events/power_failure.dm @@ -9,7 +9,7 @@ for(var/obj/machinery/power/smes/S in world) var/area/current_area = get_area(S) - if(current_area.type in skipped_areas) + if(current_area.type in skipped_areas || S.z != 1) continue S.charge = 0 S.output = 0 @@ -34,7 +34,7 @@ C.cell.charge = C.cell.maxcharge for(var/obj/machinery/power/smes/S in world) var/area/current_area = get_area(S) - if(current_area.type in skipped_areas) + if(current_area.type in skipped_areas || S.z != 1) continue S.charge = S.capacity S.output = 200000