flatpacker 
Vars | |
busy | Are we busy printing? |
---|---|
creation_efficiency | Coefficient applied to consumed materials. Lower values result in lower material consumption. |
flatpack_time | time needed to produce a flatpacked machine |
flatpacked_components | List of components that need to be packed along with the circuitboard |
inserted_board | The inserted board |
materials | The container to hold materials |
max_part_tier | Our max print tier |
needed_mats | Materials needed to print this board |
print_tier | The highest tier of this board |
Procs | |
analyze_cost | Attempts to find the total material cost of a typepath (including our creation efficiency), modifying a list The list is modified as an assoc list: Material datum typepath = Cost If the type is found on a techweb, uses material costs from there Otherwise, the typepath is created in nullspace and fetches materials from the initialized one, then deleted. |
finish_build | Turns the supplied board into a flatpack, and sets the machine as not busy Arguments |
get_flatpack_component_count | Returns count of inserted flatpack component parts |
get_flatpack_component_name | Returns the name of this component. Vending canistors & maybe other types in the future require special parsing |
Var Details
busy 
Are we busy printing?
creation_efficiency 
Coefficient applied to consumed materials. Lower values result in lower material consumption.
flatpack_time 
time needed to produce a flatpacked machine
flatpacked_components 
List of components that need to be packed along with the circuitboard
inserted_board 
The inserted board
materials 
The container to hold materials
max_part_tier 
Our max print tier
needed_mats 
Materials needed to print this board
print_tier 
The highest tier of this board
Proc Details
analyze_cost
Attempts to find the total material cost of a typepath (including our creation efficiency), modifying a list The list is modified as an assoc list: Material datum typepath = Cost If the type is found on a techweb, uses material costs from there Otherwise, the typepath is created in nullspace and fetches materials from the initialized one, then deleted.
Args:
- part_type - Typepath of the item we are trying to find the costs of
- costs - Assoc list we modify and return
- count - the number of parts to compute the cost of
finish_build
Turns the supplied board into a flatpack, and sets the machine as not busy Arguments
- board - the board to put inside the flatpack
get_flatpack_component_count
Returns count of inserted flatpack component parts
Arguments
- obj/item/type - the component type we are trying to count
get_flatpack_component_name
Returns the name of this component. Vending canistors & maybe other types in the future require special parsing
Arguments
- obj/item/component - the component typepath we are trying to get the name