mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
Updates code to be 510 compile compatible. Also introduces the new updates to the GOON processScheduler, which should make for better gameplay and less lag. Specially on high population.
30 lines
607 B
Plaintext
30 lines
607 B
Plaintext
/datum/controller/process/mob
|
|
var/tmp/datum/updateQueue/updateQueueInstance
|
|
|
|
/datum/controller/process/mob/setup()
|
|
name = "mob"
|
|
schedule_interval = 20 // every 2 seconds
|
|
start_delay = 16
|
|
|
|
/datum/controller/process/mob/started()
|
|
..()
|
|
if(!mob_list)
|
|
mob_list = list()
|
|
|
|
/datum/controller/process/mob/doWork()
|
|
for(last_object in mob_list)
|
|
var/mob/M = last_object
|
|
if(isnull(M.gcDestroyed))
|
|
try
|
|
M.Life()
|
|
catch(var/exception/e)
|
|
catchException(e, M)
|
|
SCHECK
|
|
else
|
|
catchBadType(M)
|
|
mob_list -= M
|
|
|
|
/datum/controller/process/mob/statProcess()
|
|
..()
|
|
stat(null, "[mob_list.len] mobs")
|