|
|
Line 131: |
Line 131: |
|
| |
|
| return p._getFarmingTable(category) | | return p._getFarmingTable(category) |
| end
| |
|
| |
| function p.getMiningTable(frame)
| |
| local result = '{|class="wikitable sortable stickyHeader"'
| |
| result = result..'\r\n|- class="headerRow-0"'
| |
| result = result..'\r\n!colspan=2|Ore!!'..Icons.Icon({'Mining', type='skill', notext=true})..' Level'
| |
| result = result..'!!XP!!Respawn Time!!Ore Value'
| |
| local mineData = Shared.clone(SkillData.Mining)
| |
| table.sort(mineData, function(a, b) return a.level < b.level end)
| |
| for i, oreData in Shared.skpairs(mineData) do
| |
| local ore = Items.getItemByID(oreData.ore)
| |
| result = result..'\r\n|-\r\n|'..Icons.Icon({ore.name, type='item', size='50', notext=true})..'||'..ore.name
| |
| result = result..'||style="text-align:right"|'..oreData.level..'||style="text-align:right"|'..ore.miningXP
| |
| result = result..'||style="text-align:right" data-sort-value="'..oreData.respawnInterval..'"|'
| |
| result = result..Shared.timeString(oreData.respawnInterval / 1000, true)
| |
| result = result..'||data-sort-value="'..ore.sellsFor..'"|'..Icons.GP(ore.sellsFor)
| |
| end
| |
|
| |
| result = result..'\r\n|}'
| |
| return result
| |
| end | | end |
|
| |
|