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

flatpacker

Vars

busyAre we busy printing?
creation_efficiencyCoefficient applied to consumed materials. Lower values result in lower material consumption.
flatpack_timetime needed to produce a flatpacked machine
inserted_boardThe inserted board
materialsThe container to hold materials
max_part_tierOur max print tier
needed_matsMaterials needed to print this board
print_tierThe highest tier of this board

Procs

analyze_costAttempts 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_buildTurns the supplied board into a flatpack, and sets the machine as not busy Arguments

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

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

finish_build

Turns the supplied board into a flatpack, and sets the machine as not busy Arguments