mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-07-11 17:12:19 +01:00
22 lines
510 B
Plaintext
22 lines
510 B
Plaintext
// handles critters
|
|
datum/controller/process/mob_ai
|
|
setup()
|
|
name = "Mob AI"
|
|
schedule_interval = 16 // 1.6 seconds
|
|
|
|
doWork()
|
|
for(var/mob/living/carbon/human/H in mobs)
|
|
H.ai_process()
|
|
scheck()
|
|
|
|
/*var/currentTick = ticks
|
|
for(var/obj/critter in critters)
|
|
tick_counter = world.timeofday
|
|
|
|
critter:process()
|
|
|
|
tick_counter = world.timeofday - tick_counter
|
|
if (critter && tick_counter > 0)
|
|
detailed_count["[critter.type]"] += tick_counter
|
|
|
|
scheck(currentTick)*/ |