mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-25 17:51:17 +00:00
The mob ticker was not in \red \b format, when every other round-start-initializing ticker is in said format. This is no longer the case.
37 lines
873 B
Plaintext
37 lines
873 B
Plaintext
/datum/controller/process/mob
|
|
var/tmp/datum/updateQueue/updateQueueInstance
|
|
|
|
/datum/controller/process/mob/setup()
|
|
name = "mob"
|
|
schedule_interval = 20 // every 2 seconds
|
|
updateQueueInstance = new
|
|
if(!mob_master)
|
|
mob_master = new
|
|
mob_master.Setup()
|
|
|
|
/datum/controller/process/mob/started()
|
|
..()
|
|
if(!updateQueueInstance)
|
|
if(!mob_list)
|
|
mob_list = list()
|
|
else if(mob_list.len)
|
|
updateQueueInstance = new
|
|
|
|
/datum/controller/process/mob/doWork()
|
|
if(updateQueueInstance)
|
|
updateQueueInstance.init(mob_list, "Life")
|
|
updateQueueInstance.Run()
|
|
mob_master.process()
|
|
|
|
var/global/datum/controller/mob_system/mob_master
|
|
|
|
/datum/controller/mob_system
|
|
var/current_cycle
|
|
var/starttime
|
|
|
|
/datum/controller/mob_system/proc/Setup()
|
|
world << "\red \b Mob ticker starting up."
|
|
starttime = world.timeofday
|
|
|
|
/datum/controller/mob_system/proc/process()
|
|
current_cycle++ |