Mob life fix, firedoors

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.
This commit is contained in:
Tigercat2000
2015-04-29 11:28:07 -07:00
parent b56d1cf06c
commit 173bdc4c27
8 changed files with 157 additions and 20 deletions
+17
View File
@@ -5,6 +5,9 @@
name = "mob"
schedule_interval = 20 // every 2 seconds
updateQueueInstance = new
if(!mob_master)
mob_master = new
mob_master.Setup()
/datum/controller/process/mob/started()
..()
@@ -18,3 +21,17 @@
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++