machine 
Vars | |
def_components | Default replacements for req_components, to be used in apply_default_parts instead of req_components types Example: list(/obj/item/stock_parts/matter_bin = /obj/item/stock_parts/matter_bin/super) |
---|---|
flatpack_components | Components that need to be flatpacked along with the circuitboard so as to replace the defaults |
needs_anchored | Whether this machine must be anchored to be constructed. |
replacement_parts | List of atoms/datums to replace the default components placed inside the machine |
req_components | Components required by the machine. Example: list(/obj/item/stock_parts/matter_bin = 5) |
Procs | |
apply_default_parts | Applies the default component parts for this machine |
flatten_component_list | Converts req_components map into a linear list with its datum components resolved |
Var Details
def_components 
Default replacements for req_components, to be used in apply_default_parts instead of req_components types Example: list(/obj/item/stock_parts/matter_bin = /obj/item/stock_parts/matter_bin/super)
flatpack_components 
Components that need to be flatpacked along with the circuitboard so as to replace the defaults
needs_anchored 
Whether this machine must be anchored to be constructed.
replacement_parts 
List of atoms/datums to replace the default components placed inside the machine
req_components 
Components required by the machine. Example: list(/obj/item/stock_parts/matter_bin = 5)
Proc Details
apply_default_parts
Applies the default component parts for this machine
Arguments
- obj/machinery/machine - the machine to apply the default parts to
flatten_component_list
Converts req_components map into a linear list with its datum components resolved
Arguments
- obj/machinery/machine - if not null adds the parts to the machine directly & will not return anything