Goonstation 13 - Modules - TypesVar Details

/datum/component/assembly

This component calls a procref with a assembly_information string on the atom it was added to when it gets attacked with an object specified in the to_combine_item This component can be used to get the convulent if-then-else trees of assemblies under control Make the proc you call on sucessfull assembly return TRUE. Else the attack will go through!

Vars

allow_apply_on_othersSet to TRUE if you want this combination to work while one of the items is on another person
to_combine_itemThe item(s) that are used to combine with the atom this component is attached to use a tool-bitflags like TOOL_CUTTING, if you want to go with groups of tools
valid_assembly_procThe Procref that will get called when the items are compatible

Var Details

allow_apply_on_others

Set to TRUE if you want this combination to work while one of the items is on another person

to_combine_item

The item(s) that are used to combine with the atom this component is attached to use a tool-bitflags like TOOL_CUTTING, if you want to go with groups of tools

valid_assembly_proc

The Procref that will get called when the items are compatible