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:
help-maint
2021-04-26 13:11:46 -03:00
committed by GitHub
parent 23bd823651
commit 2917764d01
7 changed files with 255 additions and 173 deletions

View File

@@ -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