mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-03-21 03:02:57 +00:00
* limits belly contetns to 200 items * there too * this too * don't strip blacklisted things * . * sometime later * no remains if belly is full * this * just warn for now * . * . * . * . * . * - * . * . * linter * faster * . * . * optimize * fix that * 20 should be ok * nom atom * . --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
17 lines
686 B
Plaintext
17 lines
686 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_runtime("[name] subsystem Recover().")
|
|
if(SSobj.current_thing)
|
|
log_runtime("current_thing was: (\ref[SSobj.current_thing])[SSobj.current_thing]([SSobj.current_thing.type]) - currentrun: [length(SSobj.currentrun)] vs total: [length(SSobj.processing)]")
|
|
var/list/old_processing = SSobj.processing.Copy()
|
|
for(var/datum/D in old_processing)
|
|
if(!isobj(D))
|
|
log_runtime("[name] subsystem Recover() found inappropriate item in list: [D.type]")
|
|
if(CHECK_BITFIELD(D.datum_flags, DF_ISPROCESSING))
|
|
processing |= D
|