mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 10:41:42 +00:00
This commit does the following;
- Repairs mob breathing by adding a new ticker process, mob_master, as
air_master is an unreliable ticker with it's customizable speed
- Restore firedoor attack_hand access
- You can now open and close firedoors by using no item, provided you
have access to them and they aren't locked.
37 lines
870 B
Plaintext
37 lines
870 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 Mob ticker starting up."
|
|
starttime = world.timeofday
|
|
|
|
/datum/controller/mob_system/proc/process()
|
|
current_cycle++ |