mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
16 lines
671 B
Plaintext
16 lines
671 B
Plaintext
PROCESSING_SUBSYSTEM_DEF(obj)
|
|
name = "Objects"
|
|
priority = FIRE_PRIORITY_OBJ
|
|
flags = SS_NO_INIT
|
|
wait = 20
|
|
|
|
/datum/controller/subsystem/processing/obj/Recover()
|
|
log_debug("[name] subsystem Recover().")
|
|
if(SSobj.current_thing)
|
|
log_debug("current_thing was: (\ref[SSobj.current_thing])[SSobj.current_thing]([SSobj.current_thing.type]) - currentrun: [SSobj.currentrun.len] vs total: [SSobj.processing.len]")
|
|
var/list/old_processing = SSobj.processing.Copy()
|
|
for(var/datum/D in old_processing)
|
|
if(!isobj(D))
|
|
log_debug("[name] subsystem Recover() found inappropriate item in list: [D.type]")
|
|
if(CHECK_BITFIELD(D.datum_flags, DF_ISPROCESSING))
|
|
processing |= D |