pulled objects follow on Z level change in space

This commit is contained in:
Kashargul
2023-12-16 20:48:39 +01:00
committed by GitHub
parent e796a023df
commit 953bdd9755
+8
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()