Module:Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 337: Line 337:
end
end
-- Find the recipe
-- Find the recipe's level
local recipes = Data.Item.FindRecipes(lookup_id, skill)
local recipes = Data.Item.FindRecipes(lookup_id, skill)
if #recipes == 1 then
if #recipes == 1 then
Line 356: Line 356:
table.insert(ret_resource, '\r\n|style="text-align:center" data-sort-value="0"|N/A')
table.insert(ret_resource, '\r\n|style="text-align:center" data-sort-value="0"|N/A')
else
else
table.insert(ret_resource, '\r\n|style="text-align:center" data-sort-value="' .. required_level .. '"|'..Icons.Icon({skill, type="skill", notext=true})..' '..required_level)
table.insert(ret_resource, '\r\n|style="text-align:center" data-sort-value="' .. required_level .. '"|'..Icons.Icon({GameData.getLocalID(skill), type="skill", notext=true})..' '..required_level)
end
end
-- Give To
-- Give To
572

edits