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

construction

Vars

ammo_sectionsamount of divisions in the ammo indicator overlay/number of ammo indicator states
banned_upgradesbitflags for banned upgrades
blueprint_changedhas the blueprint design changed
has_ammobarcontrols whether or not does update_icon apply ammo indicator overlays
mattercurrent local matter inside the device, not used when silo link is on
max_mattermaximum local matter this device can hold, not used when silo link is on
silo_linkswitch to use internal or remote storage
silo_matsremote connection to the silo
spark_systemthe spark system which sparks whever the ui options are dited
upgradebitflags for upgrades

Procs

build_delayAn do_after() specially designed for rhd devices
check_menuChecks if we are allowed to interact with a radial menu
get_matterreturns local matter units available. overridden by rcd borg to return power units available
get_silo_ironused for examining the RCD and for its UI
handle_ui_actoverwrite to insert custom ui handling for subtypes
insert_matterInserts matter into the RCD allowing it to build
install_upgradeInstalls an upgrade into the RCD checking if it is already installed, or if it is a banned upgrade
ui_actshared action for toggling silo link rcd,rld & plumbing
ui_datashared data for rcd,rld & plumbing

Var Details

ammo_sections

amount of divisions in the ammo indicator overlay/number of ammo indicator states

banned_upgrades

bitflags for banned upgrades

blueprint_changed

has the blueprint design changed

has_ammobar

controls whether or not does update_icon apply ammo indicator overlays

matter

current local matter inside the device, not used when silo link is on

max_matter

maximum local matter this device can hold, not used when silo link is on

switch to use internal or remote storage

silo_mats

remote connection to the silo

spark_system

the spark system which sparks whever the ui options are dited

upgrade

bitflags for upgrades

Proc Details

build_delay

An do_after() specially designed for rhd devices

check_menu

Checks if we are allowed to interact with a radial menu

Arguments:

get_matter

returns local matter units available. overridden by rcd borg to return power units available

get_silo_iron

used for examining the RCD and for its UI

handle_ui_act

overwrite to insert custom ui handling for subtypes

insert_matter

Inserts matter into the RCD allowing it to build

install_upgrade

Installs an upgrade into the RCD checking if it is already installed, or if it is a banned upgrade

ui_act

shared action for toggling silo link rcd,rld & plumbing

ui_data

shared data for rcd,rld & plumbing