/tg/ Station 13 - Modules - Types — Var Details - Proc Details

chained_together

Vars

chained_to_weakrefWeakref to the thing we're chained to

Procs

get_beam_anchorReturns the atom on a turf that holds the passed end of the chain, or null if the chain should not be drawn to it
on_chained_to_movedDrags us into the tile the thing we're chained to just left, like pulling does, so the leash only has to pathfind when that fails
update_beamDraws the chain between the outermost holders of both ends, hiding it while they share a holder

Var Details

chained_to_weakref

Weakref to the thing we're chained to

Proc Details

get_beam_anchor

Returns the atom on a turf that holds the passed end of the chain, or null if the chain should not be drawn to it

on_chained_to_moved

Drags us into the tile the thing we're chained to just left, like pulling does, so the leash only has to pathfind when that fails

update_beam

Draws the chain between the outermost holders of both ends, hiding it while they share a holder