mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 14:00:18 +01:00
Updates subsystem definitions to new standards. (#17470)
* My heart is dragging me down into... ...oblivion! * drifting closer to the edge but she won't have me * ever round me we are dead before we meet her * for the last time * wake up in sweat * n * fff * uff --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
// Subsystems that cmd_ss_panic can hard-restart.
|
||||
// *MUST* have New() use NEW_SS_GLOBAL.
|
||||
var/list/panic_targets = list(
|
||||
"Garbage" = /datum/controller/subsystem/garbage_collector,
|
||||
"Garbage" = /datum/controller/subsystem/garbage,
|
||||
"Air" = /datum/controller/subsystem/air,
|
||||
"Explosives" = /datum/controller/subsystem/explosives,
|
||||
"Game Ticker" = /datum/controller/subsystem/ticker,
|
||||
|
||||
@@ -48,11 +48,18 @@
|
||||
|
||||
var/static/list/failure_strikes //How many times we suspect a subsystem type has crashed the MC, 3 strikes and you're out! This is an assoc list indexed by type.
|
||||
|
||||
//Do not override
|
||||
///datum/controller/subsystem/New()
|
||||
|
||||
// Used to initialize the subsystem BEFORE the map has loaded
|
||||
/datum/controller/subsystem/New()
|
||||
// Called AFTER Recover if that is called
|
||||
// Prefer to use Initialize if possible
|
||||
/datum/controller/subsystem/proc/PreInit()
|
||||
return
|
||||
|
||||
//This is used so the mc knows when the subsystem sleeps. do not override.
|
||||
/datum/controller/subsystem/proc/ignite(resumed = 0)
|
||||
SHOULD_NOT_OVERRIDE(TRUE)
|
||||
set waitfor = 0
|
||||
. = SS_SLEEPING
|
||||
fire(resumed)
|
||||
|
||||
Reference in New Issue
Block a user