Module:Sandbox/User:Alsang: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(starting to work)
No edit summary
Line 61: Line 61:
json.Value = product.Value
json.Value = product.Value
-- Filter out when this item isn't actually used (Will happen on pages with multiple recipes)
-- Filter out when this item isn't actually used (Will happen on pages with multiple recipes)
-- if Array.any(json.materials, function(mat)
if Array.any(json.materials, function(mat)
-- return mat.name == item
return mat.name == item
-- end) then
end) then
table.insert(parsed, json)
table.insert(parsed, json)
-- end
end
end
end
table.sort(parsed, recipe_sort)
table.sort(parsed, recipe_sort)