Anonymous

Module:Township: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 329: Line 329:
}
}
local skill = skill_overrides[item.id] or resource._skill
local skill = skill_overrides[item.id] or resource._skill
local _namespace, local_skillname = GameData.getLocalID(skill or '')
-- Check for upgraded Crafting items and downgrade them so we can display the crafting level for the base item
-- Check for upgraded Crafting items and downgrade them so we can display the crafting level for the base item
Line 356: Line 357:
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({GameData.getLocalID(skill)[2], type="skill", notext=true})..' '..required_level)
table.insert(ret_resource, '\r\n|style="text-align:center" data-sort-value="' .. required_level .. '"|'..Icons.Icon({local_skillname, type="skill", notext=true})..' '..required_level)
end
end
-- Give To
-- Give To
572

edits