2,875
edits
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
local Agility = require('Module:Skills/Agility') | local Agility = require('Module:Skills/Agility') | ||
local Shop = require('Module:Shop') | local Shop = require('Module:Shop') | ||
local Num = require('Module:Number') | |||
--Brute forcing some item uses to make things easier | --Brute forcing some item uses to make things easier | ||
Line 590: | Line 591: | ||
elseif type(row.xp) == 'number' then | elseif type(row.xp) == 'number' then | ||
xpVal = row.xp | xpVal = row.xp | ||
xpText = | xpText = Num.formatnum(row.xp) .. ' ' .. Icons.Icon({typeName, type='skill', notext=true}) .. ' XP' | ||
end | end | ||
local matRow = {} | local matRow = {} | ||
Line 639: | Line 640: | ||
table.insert(resultPart, '\r\n| ') | table.insert(resultPart, '\r\n| ') | ||
if qty > 1 then | if qty > 1 then | ||
table.insert(resultPart, "'''" .. | table.insert(resultPart, "'''" .. Num.formatnum(qty) .. "x''' ") | ||
end | end | ||
table.insert(resultPart, Icons.Icon({iconName, row.item.name, type=iconType, noicon=true})) | table.insert(resultPart, Icons.Icon({iconName, row.item.name, type=iconType, noicon=true})) |
edits