Module:Skills: Difference between revisions

Added right align on numerical columns for getMiningTable
(fixed typo)
(Added right align on numerical columns for getMiningTable)
Line 125: Line 125:
     local ore = Items.getItemByID(oreData.ore)
     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..'\r\n|-\r\n|'..Icons.Icon({ore.name, type='item', size='50', notext=true})..'||'..ore.name
     result = result..'||'..oreData.level..'||'..ore.miningXP
     result = result..'||style="text-align:right"|'..oreData.level..'||style="text-align:right"|'..ore.miningXP
     result = result..'||data-sort-value="'..oreData.respawnInterval.."'|"
     result = result..'||style="text-align:right" data-sort-value="'..oreData.respawnInterval.."'|"
     result = result..Shared.timeString(oreData.respawnInterval / 1000, true)
     result = result..Shared.timeString(oreData.respawnInterval / 1000, true)
     result = result..'||data-sort-value="'..ore.sellsFor..'"|'..Icons.GP(ore.sellsFor)
     result = result..'||data-sort-value="'..ore.sellsFor..'"|'..Icons.GP(ore.sellsFor)