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

plumbing

The plumbing RCD. All the blueprints are located in _globalvars > lists > construction.dm

Vars

blueprinttype of the plumbing machine
choicesindex, used in the attack self to get the type. stored here since it doesnt change
current_colorCurrent selected color, for ducts
current_layerCurrent selected layer
machinery_dataAll info for construction
name_to_typeindex, used in the attack self to get the type. stored here since it doesnt change
plumbing_design_typesThis list that holds all the plumbing design types the plumberer can construct. Its purpose is to make it easy to make new plumberer subtypes with a different selection of machines.

Procs

choose_color_menuChoose the current color via radial menu.
choose_layer_menuChoose the current layer via radial menu.
create_machinepretty much rcd_create, but named differently to make myself feel less bad for copypasting from a sibling-type
mouse_wheeledChoose layer via mouse wheel, like an RPD
set_plumbing_designsSet the list of designs this plumbing rcd can make

Var Details

blueprint

type of the plumbing machine

choices

index, used in the attack self to get the type. stored here since it doesnt change

current_color

Current selected color, for ducts

current_layer

Current selected layer

machinery_data

All info for construction

name_to_type

index, used in the attack self to get the type. stored here since it doesnt change

plumbing_design_types

This list that holds all the plumbing design types the plumberer can construct. Its purpose is to make it easy to make new plumberer subtypes with a different selection of machines.

Proc Details

choose_color_menu

Choose the current color via radial menu.

Arguments:

choose_layer_menu

Choose the current layer via radial menu.

Arguments:

create_machine

pretty much rcd_create, but named differently to make myself feel less bad for copypasting from a sibling-type

mouse_wheeled

Choose layer via mouse wheel, like an RPD

Arguments:

set_plumbing_designs

Set the list of designs this plumbing rcd can make