mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
In short, baymerge changed beekeeping. Generally for the better, i love some of the new things they did. But they also removed some things (like the actual bee mobs) and some of their new stuff wasn't properly implemented. So this PR fixes up both the bay beekeeping content and ours, to work in harmony together, remove redundant stuff, and fix lots of bugs.
29 lines
611 B
Plaintext
29 lines
611 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(M && 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") |