From 57829cbd43426d53fec403b098fcbc5ef3e198f0 Mon Sep 17 00:00:00 2001 From: alex-gh Date: Wed, 6 Nov 2013 06:45:16 +0100 Subject: [PATCH] retaliate mobs no longer break windows. Tables and lockers still fair game. --- .../mob/living/simple_animal/hostile/retaliate/retaliate.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm index 49a30558594..6e18ea979a4 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm @@ -47,3 +47,9 @@ /mob/living/simple_animal/hostile/retaliate/adjustBruteLoss(var/damage) ..(damage) Retaliate() + +/mob/living/simple_animal/hostile/retaliate/DestroySurroundings() + for(var/dir in cardinal) // North, South, East, West + var/obj/structure/obstacle = locate(/obj/structure, get_step(src, dir)) + if(istype(istype(obstacle, /obj/structure/closet) || istype(obstacle, /obj/structure/table)) + obstacle.attack_animal(src) \ No newline at end of file