Adds a check to the greytide virus to see if the APCs are operating.

This commit is contained in:
Datraen
2016-03-18 15:20:48 -04:00
parent e8d65eb901
commit eb6f621ca9
3 changed files with 19 additions and 8 deletions

View File

@@ -61,9 +61,12 @@
/datum/event/prison_break/tick()
if(activeFor == releaseWhen)
if(areas && areas.len > 0)
var/obj/machinery/power/apc/theAPC = null
for(var/area/A in areas)
for(var/obj/machinery/light/L in A)
L.flicker(10)
theAPC = A.get_apc()
if(theAPC.operating) //If the apc's off, it's a little hard to overload the lights.
for(var/obj/machinery/light/L in A)
L.flicker(10)
/datum/event/prison_break/end()