From 44909f998d64249f18a77a291ceaa2ebf4b6e5e9 Mon Sep 17 00:00:00 2001 From: Seris02 Date: Fri, 17 Feb 2023 01:04:14 +0800 Subject: [PATCH] makes steppy code better --- code/modules/vore/resizing/resize_vr.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/vore/resizing/resize_vr.dm b/code/modules/vore/resizing/resize_vr.dm index 41cad70074..a81a27174d 100644 --- a/code/modules/vore/resizing/resize_vr.dm +++ b/code/modules/vore/resizing/resize_vr.dm @@ -272,13 +272,14 @@ var/mob/living/carbon/human/prey = tmob var/can_pass = TRUE + var/size_ratio_needed = (a_intent == I_DISARM || a_intent == I_HURT) ? 0.5 : (a_intent == I_GRAB ? 0.25 : 0) //the person trying to block us can be 25% bigger than the person we're trying to step on if (isturf(prey.loc)) for (var/atom/movable/M in prey.loc) - if (prey == M) + if (prey == M || pred == M) continue if (istype(M, /mob/living)) var/mob/living/L = M - if (!(M.CanPass(src, prey.loc) || get_effective_size(FALSE) - L.get_effective_size(TRUE) >= 0.75)) + if (!M.CanPass(src, prey.loc) && !(get_effective_size(FALSE) - L.get_effective_size(TRUE) >= size_ratio_needed || L.lying)) can_pass = FALSE continue if (!M.CanPass(src, prey.loc))