From 9a9bf5cd1ebb30df519f2981e1fa22d36cf7a576 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 22 Feb 2022 13:56:56 +0100 Subject: [PATCH] [MIRROR] Makes non-dense mobs not knock monkeys over [MDB IGNORE] (#11662) * Makes non-dense mobs not knock monkeys over (#65040) Monkeys only get knocked over when you walk over them (not even when you swap places with them, which I thought was supposed to be the case), this makes non-dense mobs not knock them over. Which means Revenants, bots, small animals (lizards/butterflies), larvas, ect. will not knock monkeys over. * Makes non-dense mobs not knock monkeys over Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> --- code/datums/ai/monkey/monkey_controller.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/ai/monkey/monkey_controller.dm b/code/datums/ai/monkey/monkey_controller.dm index ceaa6d5fd81..264585a1b1c 100644 --- a/code/datums/ai/monkey/monkey_controller.dm +++ b/code/datums/ai/monkey/monkey_controller.dm @@ -173,7 +173,7 @@ have ways of interacting with a specific mob and control it. /datum/ai_controller/monkey/proc/on_entered(datum/source, atom/movable/arrived, atom/old_loc, list/atom/old_locs) SIGNAL_HANDLER var/mob/living/living_pawn = pawn - if(!IS_DEAD_OR_INCAP(living_pawn) && isliving(arrived)) + if(!IS_DEAD_OR_INCAP(living_pawn) && isliving(arrived) && arrived.density) var/mob/living/in_the_way_mob = arrived in_the_way_mob.knockOver(living_pawn) return