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>
17 lines
670 B
Plaintext
17 lines
670 B
Plaintext
//Fires five times every second.
|
|
|
|
PROCESSING_SUBSYSTEM_DEF(fastprocess)
|
|
name = "Fast Processing"
|
|
wait = 2
|
|
stat_tag = "FP"
|
|
flags = SS_NO_INIT
|
|
|
|
/datum/controller/subsystem/processing/fastprocess/Recover()
|
|
log_debug("[name] subsystem Recover().")
|
|
if(SSfastprocess.current_thing)
|
|
log_debug("current_thing was: (\ref[SSfastprocess.current_thing])[SSfastprocess.current_thing]([SSfastprocess.current_thing.type]) - currentrun: [SSfastprocess.currentrun.len] vs total: [SSfastprocess.processing.len]")
|
|
var/list/old_processing = SSfastprocess.processing.Copy()
|
|
for(var/datum/D in old_processing)
|
|
if(CHECK_BITFIELD(D.datum_flags, DF_ISPROCESSING))
|
|
processing |= D
|