mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
@@ -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