* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
29 lines
613 B
Plaintext
29 lines
613 B
Plaintext
SUBSYSTEM_DEF(mobs)
|
|
name = "Mobs"
|
|
init_order = 4
|
|
priority = 100
|
|
flags = SS_KEEP_TIMING|SS_NO_INIT
|
|
|
|
var/list/currentrun = list()
|
|
|
|
/datum/controller/subsystem/mobs/stat_entry()
|
|
..("P:[GLOB.mob_list.len]")
|
|
|
|
|
|
/datum/controller/subsystem/mobs/fire(resumed = 0)
|
|
var/seconds = wait * 0.1
|
|
if (!resumed)
|
|
src.currentrun = GLOB.mob_list.Copy()
|
|
|
|
//cache for sanic speed (lists are references anyways)
|
|
var/list/currentrun = src.currentrun
|
|
|
|
while(currentrun.len)
|
|
var/mob/M = currentrun[currentrun.len]
|
|
currentrun.len--
|
|
if(M)
|
|
M.Life(seconds)
|
|
else
|
|
GLOB.mob_list.Remove(M)
|
|
if (MC_TICK_CHECK)
|
|
return |