Module:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(splitting the previous big edit into smaller sections: calling the subfunction of RecipeTreeSearch instead of the whole thing so it doesnt try to search its own recipe) |
Tag: Undo |
||
Line 60: | Line 60: | ||
if showFullRecipe then |
if showFullRecipe then |
||
-- Use the RecipeTreeSearch module to get all the rawMaterials |
-- Use the RecipeTreeSearch module to get all the rawMaterials needed to make output1 |
||
-- slightly recursive use here, since it will look up the recipe JSON for this item, which is what this module is making |
|||
⚫ | |||
-- ideally rework this if it can be done without breaking things. |
|||
⚫ | |||
rawMaterials = searchResult.materials |
rawMaterials = searchResult.materials |
||
intermediateMaterials = p._reverseTable(searchResult.intermediateMaterials) |
intermediateMaterials = p._reverseTable(searchResult.intermediateMaterials) |
||
-- display XP and duration totals for multi-step process |
-- display XP and duration totals for multi-step process |
||
args.displayXP = |
args.displayXP = searchResult.xp |
||
args.displayDuration = |
args.displayDuration = searchResult.duration |
||
-- "Pole" exception, because I cannot figure out how else to deal with these recipes (yet) |
-- "Pole" exception, because I cannot figure out how else to deal with these recipes (yet) |