From d701946cd45647538cae999a8f89fd6958d17946 Mon Sep 17 00:00:00 2001 From: Firecage Date: Sun, 6 Sep 2015 00:02:22 +0200 Subject: [PATCH] Adds do_after to the spider verbs. --- .../mob/living/simple_animal/hostile/giant_spider.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm index a8a4cdc4357..f1ce0df13fc 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm @@ -155,7 +155,7 @@ busy = SPINNING_WEB src.visible_message("\the [src] begins to secrete a sticky substance.") stop_automated_movement = 1 - spawn(40) + if(do_after(src, 40, target = T)) if(busy == SPINNING_WEB && src.loc == T) new /obj/effect/spider/stickyweb(T) busy = 0 @@ -186,7 +186,7 @@ src.visible_message("\the [src] begins to secrete a sticky substance around \the [cocoon_target].") stop_automated_movement = 1 walk(src,0) - spawn(50) + if(do_after(src, 50, target = src)) if(busy == SPINNING_COCOON) if(cocoon_target && istype(cocoon_target.loc, /turf) && get_dist(src,cocoon_target) <= 1) var/obj/effect/spider/cocoon/C = new(cocoon_target.loc) @@ -236,7 +236,7 @@ busy = LAYING_EGGS src.visible_message("\the [src] begins to lay a cluster of eggs.") stop_automated_movement = 1 - spawn(50) + if(do_after(src, 50, target = src.loc)) if(busy == LAYING_EGGS) E = locate() in get_turf(src) if(!E)