mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-02-07 07:00:29 +00:00
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
16 lines
683 B
Plaintext
16 lines
683 B
Plaintext
PROCESSING_SUBSYSTEM_DEF(turfs)
|
|
name = "Turf Processing"
|
|
wait = 20
|
|
flags = SS_NO_INIT
|
|
|
|
/datum/controller/subsystem/processing/turfs/Recover()
|
|
log_runtime("[name] subsystem Recover().")
|
|
if(SSturfs.current_thing)
|
|
log_runtime("current_thing was: (\ref[SSturfs.current_thing])[SSturfs.current_thing]([SSturfs.current_thing.type]) - currentrun: [length(SSturfs.currentrun)] vs total: [length(SSturfs.processing)]")
|
|
var/list/old_processing = SSturfs.processing.Copy()
|
|
for(var/datum/D in old_processing)
|
|
if(!isturf(D))
|
|
log_runtime("[name] subsystem Recover() found inappropriate item in list: [D.type]")
|
|
if(CHECK_BITFIELD(D.datum_flags, DF_ISPROCESSING))
|
|
processing |= D
|