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

rwd

Vars

activeare we dual wielding this machine
cablecached reference of the cable used in the device
cable_layerwhat layer of cable are we working with
current_amountcurrent amount of cable in the machine
listeningTothe player currently holding this device.
max_amountmaximum amount of cable this device can hold
radial_menuradial menu to select cable layer

Procs

add_cableinsert cable into the rwd
attackbyfor inserting cable into the rwd
cable_allowed_herecheck if the turf has the same cable layer as this design. If it does don't put cable here
delta_cableextra safe modify just to be sure
get_cableget cached reference of cable which gets used over time
modify_cablemodify cable properties according to its layer
on_movestuff to do when moving
on_unwieldtriggered on unwield of two handed item
on_wieldif the user say requested 22 pieces but the cached cable reference has only 5 pieces then it wont be an exact multiple So the while loop runs twice i.e 1st iteration it uses 5 pieces and it has 22-5= 17 pieces left to consume from this device Finally 2nd iteration it creates a new cached cable & consumes the remaining 17 pieces and now the device will use the cached cable containing 30-17 = 30 pieces. triggered on wield of two handed item

Var Details

active

are we dual wielding this machine

cable

cached reference of the cable used in the device

cable_layer

what layer of cable are we working with

current_amount

current amount of cable in the machine

listeningTo

the player currently holding this device.

max_amount

maximum amount of cable this device can hold

radial_menu

radial menu to select cable layer

Proc Details

add_cable

insert cable into the rwd

attackby

for inserting cable into the rwd

cable_allowed_here

check if the turf has the same cable layer as this design. If it does don't put cable here

delta_cable

extra safe modify just to be sure

get_cable

get cached reference of cable which gets used over time

modify_cable

modify cable properties according to its layer

on_move

stuff to do when moving

on_unwield

triggered on unwield of two handed item

on_wield

if the user say requested 22 pieces but the cached cable reference has only 5 pieces then it wont be an exact multiple So the while loop runs twice i.e 1st iteration it uses 5 pieces and it has 22-5= 17 pieces left to consume from this device Finally 2nd iteration it creates a new cached cable & consumes the remaining 17 pieces and now the device will use the cached cable containing 30-17 = 30 pieces. triggered on wield of two handed item