mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Fixes subsystem MC crash tracking (#2239)
This commit is contained in:
committed by
kevinz000
parent
365fe761a0
commit
4843cbe67d
@@ -124,7 +124,8 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
|
|||||||
var/FireHim = FALSE
|
var/FireHim = FALSE
|
||||||
if(istype(BadBoy))
|
if(istype(BadBoy))
|
||||||
msg = null
|
msg = null
|
||||||
switch(++BadBoy.failure_strikes)
|
LAZYINITLIST(BadBoy.failure_strikes)
|
||||||
|
switch(++BadBoy.failure_strikes[BadBoy.type])
|
||||||
if(2)
|
if(2)
|
||||||
msg = "The [BadBoy.name] subsystem was the last to fire for 2 controller restarts. It will be recovered now and disabled if it happens again."
|
msg = "The [BadBoy.name] subsystem was the last to fire for 2 controller restarts. It will be recovered now and disabled if it happens again."
|
||||||
FireHim = TRUE
|
FireHim = TRUE
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
var/runlevels = RUNLEVELS_DEFAULT //points of the game at which the SS can fire
|
var/runlevels = RUNLEVELS_DEFAULT //points of the game at which the SS can fire
|
||||||
|
|
||||||
var/static/failure_strikes = 0 //How many times we suspect this subsystem has crashed the MC, 3 strikes and you're out!
|
var/static/list/failure_strikes //How many times we suspect a subsystem type has crashed the MC, 3 strikes and you're out!
|
||||||
|
|
||||||
//Do not override
|
//Do not override
|
||||||
/datum/controller/subsystem/New()
|
/datum/controller/subsystem/New()
|
||||||
|
|||||||
Reference in New Issue
Block a user