Refactors beams. Adds tethering. IV drips/bags are now tethered. (#29570)

* refactor

* tether

* tetherrrs

* logic fix (i hope)

* ci fix

* ok please work
This commit is contained in:
Contrabang
2025-07-09 14:49:40 +00:00
committed by GitHub
parent 6c2aa06eb3
commit 1f124ac835
15 changed files with 404 additions and 106 deletions
+3 -4
View File
@@ -840,10 +840,9 @@
held_items += held.UID()
/obj/structure/table/tray/Move(NewLoc, direct)
var/atom/OldLoc = loc
var/atom/oldloc = loc
. = ..()
if(!.) // ..() will return 0 if we didn't actually move anywhere.
if(oldloc == loc) // ..() will return 0 if we didn't actually move anywhere, except for some diagonal cases.
return
if(direct & (direct - 1)) // This represents a diagonal movement, which is split into multiple cardinal movements. We'll handle moving the items on the cardinals only.
@@ -857,7 +856,7 @@
if(!held)
held_items -= held_uid
continue
if(OldLoc != held.loc)
if(oldloc != held.loc)
held_items -= held_uid
continue
held.forceMove(NewLoc)