Files
Bubberstation/code/controllers/subsystem/mobs.dm
Aranclanos ca98ac5151 The staff of change projectile will qdel the mob instead of manually deleting it.
Added a warning for when the mob controller removes a null from the mob list.
2015-08-13 21:40:00 -03:00

23 lines
405 B
Plaintext

var/datum/subsystem/mobs/SSmob
/datum/subsystem/mobs
name = "Mobs"
priority = 4
/datum/subsystem/mobs/New()
NEW_SS_GLOBAL(SSmob)
/datum/subsystem/mobs/stat_entry()
..("P:[mob_list.len]")
/datum/subsystem/mobs/fire()
var/seconds = wait * 0.1
for(var/thing in mob_list)
if(thing)
thing:Life(seconds)
continue
WARNING("Found a null in the mob list. Removing.")
mob_list.Remove(thing)