mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
The Tubes, They Wheel (#29268)
* Consolidates sanity for loading people into medbay machinery * Adds conveyor_act() * Can multitool set output tile for Cryo and Cloner * Conveyorbay only works on lying subjects * Cryobelt accepts non-lying targets if they have clone damage * powerhouse.ogg * Create powerhouse.ogg
This commit is contained in:
@@ -247,9 +247,14 @@
|
||||
for(var/atom/movable/A in affecting)
|
||||
if(!A.anchored)
|
||||
if(A.loc == src.loc) // prevents the object from being affected if it's not currently here.
|
||||
A.set_glide_size(DELAY2GLIDESIZE(SS_WAIT_FAST_MACHINERY))
|
||||
step(A,movedir)
|
||||
items_moved++
|
||||
for(var/atom/dest in get_step(src, movedir)) //Should/can this be optimized to not check ALL atoms?
|
||||
if(dest.conveyor_act(A, src))
|
||||
items_moved++
|
||||
break
|
||||
if(A && A.loc == src.loc) //Check that our location didn't check from conveyor_acting on machinery.
|
||||
A.set_glide_size(DELAY2GLIDESIZE(SS_WAIT_FAST_MACHINERY))
|
||||
step(A,movedir)
|
||||
items_moved++
|
||||
if(items_moved >= max_moved)
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user