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

plumbing

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

Vars

banned_upgradesit does not make sense why any of these should be installed.
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_numbermaps layer name to layer number value. didnt make this global cause only this class needs it
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

create_machinepretty much rcd_create, but named differently to make myself feel less bad for copypasting from a sibling-type
get_categoryfind which category this design belongs to

Var Details

banned_upgrades

it does not make sense why any of these should be installed.

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_number

maps layer name to layer number value. didnt make this global cause only this class needs it

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

create_machine

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

get_category

find which category this design belongs to