Module:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(reorder sections so SMW properties are set earlier in the module) |
(one more try at stopping this module needing to recurse on its own SMW generated data) |
||
Line 93: | Line 93: | ||
-- slightly recursive use here, since it will look up the recipe JSON for this item, which is what this module is making |
-- 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. |
-- ideally rework this if it can be done without breaking things. |
||
local searchResult = search. |
local searchResult = search.treeSearch(argsMaterials) |
||
--local searchResult = search.main(args.output1) |
|||
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 = searchResult.xp |
args.displayXP = args.exp and searchResult.xp and searchResult.xp + tonumber(args.exp) |
||
args.displayDuration = searchResult.duration |
args.displayDuration = args.duration and searchResult.duration and searchResult.duration + tonumber(args.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) |