mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-23 13:07:37 +01:00
pulled objects follow on Z level change in space
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user