Anonymous

Module:Skills/Gathering: Difference between revisions

From Melvor Idle
getThievingNPCTable: Add sort order to level column
(Move functions to Module:Skills; Move Farming functions from Module:Skills)
(getThievingNPCTable: Add sort order to level column)
Line 514: Line 514:
local area = Skills.getThievingNPCArea(npc)
local area = Skills.getThievingNPCArea(npc)
result = result..'||'..area.name
result = result..'||'..area.name
result = result..'||'..Icons._SkillReq('Thieving', npc.level)
result = result..'||data-sort-value="' .. npc.level .. '"| '..Icons._SkillReq('Thieving', npc.level)
result = result..'||style="text-align:right"|'..npc.xp
result = result..'||style="text-align:right"|'..npc.xp
result = result..'||style="text-align:right"|'..(npc.maxHit * 10)
result = result..'||style="text-align:right"|'..(npc.maxHit * 10)