[MIRROR] pull through z-levels and map transits (#7429)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2023-12-17 03:44:12 -07:00
committed by GitHub
parent 234ab90b11
commit 068917d820
4 changed files with 43 additions and 4 deletions

View File

@@ -134,10 +134,18 @@
if(!Move(destination))
return 0
if(isliving(src))
var/list/atom/movable/pulling = list()
var/mob/living/L = src
if(L.pulling && !L.pulling.anchored)
pulling |= L.pulling
for(var/obj/item/weapon/grab/G in list(L.l_hand, L.r_hand))
pulling |= G.affecting
if(direction == UP)
src.audible_message("<span class='notice'>[src] moves up.</span>")
else if(direction == DOWN)
src.audible_message("<span class='notice'>[src] moves down.</span>")
for(var/atom/movable/P in pulling)
P.forceMove(destination)
return 1
/mob/proc/can_overcome_gravity()