Module:RecipeTreeSearch/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "{{documentation}} {{Helper module|name=RecipeTreeSearch |fname1=main(item) |ftype1=name of an item page, as a string |fuse1=Returns a Lua Table structured as a Recipe, but containing additional information about a multi-stage crafting process such including: All base materials, including their buy price in shops All intermediate materials, including both the number of materials and the number of times the crafting step needs to be performed Total values for XP, KP, dur...") |
(add line for the treeSearch function, used by Infobox Recipe) |
||
Line 9: | Line 9: | ||
Total values for XP, KP, duration |
Total values for XP, KP, duration |
||
|fname2=treeSearch(inputs) |
|||
|ftype2=table of name/quantity pairs for the inputs to a recipe |
|||
|fuse2=Use this function on the inputs to a recipe rather than the name of the output of a recipe. This allows the tree to be searched before the final recipe has been made. IMPORTANT: within the Infobox Recipe that constructs a recipe, it is imporant to use this function instead of main(), so that this module will not attempt to use the recipe before it has been constructed. |
|||
Returns a the same structure Lua Table as main(), however it lacks any information on the final step. |
|||
}} |
}} |