Skip to content

Instantly share code, notes, and snippets.

@pagameba
Last active October 12, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pagameba/618aaa8c1da1ace80761749b8c095502 to your computer and use it in GitHub Desktop.
Save pagameba/618aaa8c1da1ace80761749b8c095502 to your computer and use it in GitHub Desktop.
Concept for auto-processing:
given an inventory of crafting cards holding recipes (input and output) and a machine that can turn the input into the output for each one:
Loop over slots in the inventory
For current slot
get output of recipe
get # of items in a storage control module
test < some value
if >
then loop to next slot
if <
create crafting ticket from card in slot (?)
get the ingredients for this card
push them into a machine (an alloy smelter in this case)
fetch output when finished processing
insert into storage module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment