mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 09:32:21 +00:00
* Makes Station Z Levels a global list * Things didnt get committed * Define * Removes files * Fix mind.dm * Wrong list name * ( * Fixes rev checks and signpost * Makes it actually compile * Signpost fix * I hate these sign posts * Never use the web editor
19 lines
652 B
Plaintext
19 lines
652 B
Plaintext
/datum/round_event_control/grid_check
|
|
name = "Grid Check"
|
|
typepath = /datum/round_event/grid_check
|
|
weight = 10
|
|
max_occurrences = 3
|
|
|
|
/datum/round_event/grid_check
|
|
announceWhen = 1
|
|
startWhen = 1
|
|
|
|
/datum/round_event/grid_check/announce()
|
|
priority_announce("Abnormal activity detected in [station_name()]'s powernet. As a precautionary measure, the station's power will be shut off for an indeterminate duration.", "Critical Power Failure", 'sound/ai/poweroff.ogg')
|
|
|
|
|
|
/datum/round_event/grid_check/start()
|
|
for(var/P in GLOB.apcs_list)
|
|
var/obj/machinery/power/apc/C = P
|
|
if(C.cell && (C.z in GLOB.station_z_levels))
|
|
C.energy_fail(rand(30,120)) |