mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
fixes stair pulling (#7988)
This commit is contained in:
@@ -214,11 +214,15 @@
|
||||
if(L.buckled)
|
||||
L.buckled.forceMove(get_turf(top))
|
||||
|
||||
var/atom/movable/P = null
|
||||
if(L.pulling && !L.pulling.anchored)
|
||||
P = L.pulling
|
||||
P.forceMove(get_turf(L))
|
||||
|
||||
L.forceMove(get_turf(top))
|
||||
|
||||
// If the object is pulling or grabbing anything, we'll want to move those too. A grab chain may be disrupted in doing so.
|
||||
if(L.pulling && !L.pulling.anchored)
|
||||
var/atom/movable/P = L.pulling
|
||||
if(P)
|
||||
P.forceMove(get_turf(top))
|
||||
L.continue_pulling(P)
|
||||
|
||||
@@ -469,11 +473,15 @@
|
||||
if(L.buckled)
|
||||
L.buckled.forceMove(get_turf(bottom))
|
||||
|
||||
var/atom/movable/P = null
|
||||
if(L.pulling && !L.pulling.anchored)
|
||||
P = L.pulling
|
||||
P.forceMove(get_turf(L))
|
||||
|
||||
L.forceMove(get_turf(bottom))
|
||||
|
||||
// If the object is pulling or grabbing anything, we'll want to move those too. A grab chain may be disrupted in doing so.
|
||||
if(L.pulling && !L.pulling.anchored)
|
||||
var/atom/movable/P = L.pulling
|
||||
if(P)
|
||||
P.forceMove(get_turf(bottom))
|
||||
L.continue_pulling(P)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user