This commit is contained in:
kepler155c
2018-10-26 00:30:37 -04:00
parent eb6ab3ed08
commit 6d3389c9c6
7 changed files with 147 additions and 144 deletions

View File

@@ -116,6 +116,8 @@ function pages.confirmation:validate()
end
end
-- TODO: maxCount needs to be entered by user ? ie. brewing station can only do 1 at a time
local recipe = {
count = result.count,
ingredients = { },
@@ -131,12 +133,13 @@ function pages.confirmation:validate()
-- save the recipe
context.userRecipes[key] = recipe
Util.writeTable(Milo.RECIPES_FILE, context.userRecipes)
Craft.loadRecipes()
-- save the machine association
Craft.machineLookup[key] = machine.name
Util.writeTable(MACHINE_LOOKUP, Craft.machineLookup)
Craft.loadRecipes()
local listingPage = UI:getPage('listing')
local displayName = itemDB:getName(result)