mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-27 10:02:12 +00:00
Resolves #6838 Sorry, this was a really big dumb on my part. Accidentally changed an 'in world' to 'in machines'
42 lines
776 B
Plaintext
42 lines
776 B
Plaintext
var/datum/subsystem/objects/SSobj
|
|
|
|
/datum/subsystem/objects
|
|
name = "Objects"
|
|
priority = 12
|
|
|
|
var/list/processing = list()
|
|
|
|
/datum/subsystem/objects/New()
|
|
NEW_SS_GLOBAL(SSobj)
|
|
|
|
/datum/subsystem/objects/Initialize()
|
|
for(var/atom/movable/AM in world)
|
|
AM.initialize()
|
|
for(var/turf/simulated/floor/F in world)
|
|
F.MakeDirty()
|
|
..()
|
|
|
|
|
|
/datum/subsystem/objects/stat_entry()
|
|
stat(name, "[round(cost,0.001)]ds\t(CPU:[round(cpu,1)]%)\t[processing.len]")
|
|
|
|
|
|
/datum/subsystem/objects/fire()
|
|
var/i=1
|
|
for(var/thing in SSobj.processing)
|
|
if(thing)
|
|
thing:process(wait)
|
|
++i
|
|
continue
|
|
SSobj.processing.Cut(i, i+1)
|
|
|
|
|
|
/* This is FPSS13 code, has not yet been ported/implemented
|
|
/obj/New()
|
|
..()
|
|
if(map_ready)
|
|
spawn(0)
|
|
if(garbage_collecting)
|
|
return
|
|
initialize()
|
|
*/ |