/tg/ Station 13 - Modules - TypesVar Details - Proc Details

tether

Creates a tether between two objects that limits movement range. Tether requires LOS and can be adjusted by left/right clicking its

Vars

cur_distCurrent extension distance
embed_targetEmbedded item that the tether "should" originate from
force_moving_targetAre we currently attempting to forcefully shorten the tether?
max_distMaximum (and initial) distance that this tether can be adjusted to
no_target_traitIf TRUE, only add TRAIT_TETHER_ATTACHED to our parent
parent_moduleTether module if we were created by one
tether_beamBeam effect
tether_nameWhat the tether is going to be called
tether_targetOther side of the tether
tether_trait_sourceRef of source, if any, for TRAIT_TETHER_ATTACHED we add

Procs

check_lineCheck LOS availibility of a tile, returns a blocking atom, if any turf_cache could be used to reduce the amount of calculations if multiple lines are cast and expected to have multiple shared turfs by sharing located results
try_adjust_positionTry adjust the anchor's position to move closer to the target or regain LOS true_source is an optional argument in case we're looking for a LOS/closer turf to a new location rather than the actual owner, and need to ignore them

Var Details

cur_dist

Current extension distance

embed_target

Embedded item that the tether "should" originate from

force_moving_target

Are we currently attempting to forcefully shorten the tether?

max_dist

Maximum (and initial) distance that this tether can be adjusted to

no_target_trait

If TRUE, only add TRAIT_TETHER_ATTACHED to our parent

parent_module

Tether module if we were created by one

tether_beam

Beam effect

tether_name

What the tether is going to be called

tether_target

Other side of the tether

tether_trait_source

Ref of source, if any, for TRAIT_TETHER_ATTACHED we add

Proc Details

check_line

Check LOS availibility of a tile, returns a blocking atom, if any turf_cache could be used to reduce the amount of calculations if multiple lines are cast and expected to have multiple shared turfs by sharing located results

try_adjust_position

Try adjust the anchor's position to move closer to the target or regain LOS true_source is an optional argument in case we're looking for a LOS/closer turf to a new location rather than the actual owner, and need to ignore them