2,875
edits
(Update for v1.3) |
No edit summary |
||
Line 7: | Line 7: | ||
local Icons = require('Module:Icons') | local Icons = require('Module:Icons') | ||
local Items = require('Module:Items') | local Items = require('Module:Items') | ||
local Num = require('Module:Number') | |||
local weaponTypes = {'Magic Staff', 'Magic Wand', 'Ranged Weapon', 'Weapon'} | local weaponTypes = {'Magic Staff', 'Magic Wand', 'Ranged Weapon', 'Weapon'} | ||
Line 229: | Line 230: | ||
end | end | ||
end | end | ||
table.insert(resultPart, '"|'.. | table.insert(resultPart, '"|'..Num.formatnum(statValue)) | ||
if statName == 'magicDamageBonus' or statName == 'damageReduction' then table.insert(resultPart, '%') end | if statName == 'magicDamageBonus' or statName == 'damageReduction' then table.insert(resultPart, '%') end | ||
end | end | ||
Line 271: | Line 272: | ||
table.insert(resultPart, 'table-negative') | table.insert(resultPart, 'table-negative') | ||
end | end | ||
table.insert(resultPart, '"|'.. | table.insert(resultPart, '"|'..Num.formatnum(statValue)) | ||
if statName == 'magicDamageBonus' or statName == 'damageReduction' then table.insert(resultPart, '%') end | if statName == 'magicDamageBonus' or statName == 'damageReduction' then table.insert(resultPart, '%') end | ||
end | end |
edits