Anonymous

Module:GolbinRaid: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 6: Line 6:
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')


function p.getCrateContents(frame)
function p.getCrateContents(frame)
Line 60: Line 61:
local spAtt = GameData.getEntityByID('attacks', spAttID)
local spAtt = GameData.getEntityByID('attacks', spAttID)
if spAtt ~= nil then
if spAtt ~= nil then
table.insert(spAttText, '<b>' .. spAtt.name .. ' (' .. Shared.round(spAtt.defaultChance, 2, 0) .. '%)</b> - ' .. spAtt.description)
table.insert(spAttText, '<b>' .. spAtt.name .. ' (' .. Num.round(spAtt.defaultChance, 2, 0) .. '%)</b> - ' .. spAtt.description)
end
end
end
end
2,875

edits