Module:Infobox Recipe: Difference between revisions
remove some comment lines that dont apply anymore, further data sanitation for display xp and display duration
(one more try at stopping this module needing to recurse on its own SMW generated data) |
(remove some comment lines that dont apply anymore, further data sanitation for display xp and display duration) |
||
Line 91:
-- Use the RecipeTreeSearch module to get all the rawMaterials needed to make output1
local searchResult = search.treeSearch(argsMaterials)
rawMaterials = searchResult.materials
intermediateMaterials = p._reverseTable(searchResult.intermediateMaterials)
-- display XP and duration totals for multi-step process
args.displayXP = tonumber(args.exp) and searchResult.xp and searchResult.xp + tonumber(args.exp)
args.displayDuration = tonumber(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)
|