From 00e0791ef3e58242dfcd8491ca97dbd859b49738 Mon Sep 17 00:00:00 2001 From: Kyep Date: Wed, 30 Oct 2019 21:52:52 -0700 Subject: [PATCH] Fixes depot mobs reacting sluggishly --- .../modules/mob/living/simple_animal/hostile/syndicate.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm index 02d5ee5d14b..513ab39b180 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm @@ -148,8 +148,10 @@ // This prevents someone from aggroing a depot mob, then hiding in a locker, perfectly safe, while the mob stands there getting killed by their friends. LoseTarget() -/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/handle_automated_movement() +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/handle_automated_action() . = ..() + if(!.) + return if(!istype(depotarea)) return if(seen_enemy) @@ -184,6 +186,10 @@ else scan_cycles++ +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/AIShouldSleep(var/list/possible_targets) + FindTarget(possible_targets, 1) + return FALSE + /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/proc/raise_alert(var/reason) if(istype(depotarea) && (!raised_alert || seen_revived_enemy) && !depotarea.used_self_destruct) raised_alert = TRUE