mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
16 lines
669 B
Plaintext
16 lines
669 B
Plaintext
PROCESSING_SUBSYSTEM_DEF(turfs)
|
|
name = "Turf Processing"
|
|
wait = 20
|
|
flags = SS_NO_INIT
|
|
|
|
/datum/controller/subsystem/processing/turfs/Recover()
|
|
log_debug("[name] subsystem Recover().")
|
|
if(SSturfs.current_thing)
|
|
log_debug("current_thing was: (\ref[SSturfs.current_thing])[SSturfs.current_thing]([SSturfs.current_thing.type]) - currentrun: [SSturfs.currentrun.len] vs total: [SSturfs.processing.len]")
|
|
var/list/old_processing = SSturfs.processing.Copy()
|
|
for(var/datum/D in old_processing)
|
|
if(!isturf(D))
|
|
log_debug("[name] subsystem Recover() found inappropriate item in list: [D.type]")
|
|
if(CHECK_BITFIELD(D.datum_flags, DF_ISPROCESSING))
|
|
processing |= D
|