mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
11 lines
539 B
Plaintext
11 lines
539 B
Plaintext
/datum/event/grid_check
|
|
|
|
/datum/event/grid_check/start()
|
|
// This sets off a chain of events that lead to the actual grid check (or perhaps worse).
|
|
// First, the Supermatter engine makes a power spike.
|
|
for(var/obj/machinery/power/generator/engine in GLOB.machines)
|
|
engine.power_spike(80)
|
|
break // Just one engine, please.
|
|
// After that, the engine checks if a grid checker exists on the same powernet, and if so, it triggers a blackout.
|
|
// If not, lots of stuff breaks. See code/modules/power/generator.dm for that piece of code.
|