Module:TableRarityValue
Jump to navigation
Jump to search
Documentation for this module may be created at Module:TableRarityValue/doc
local p = {}
local var = require("Module:Var")
function p.gimmeRarityTable()
local rows = {
{ "Common", 1.00, 0, var.m_gearCommon },
{ "Uncommon", 1.05, 1, var.m_gearUncommon },
{ "Rare", 1.10, 2, var.m_gearRare },
{ "Epic", 1.20, 3, var.m_gearEpic },
{ "Legendary", 1.35, 4, var.m_gearLegendary },
{ "Celestial", 1.50, 5, var.m_gearCelestial },
}
local ret = '{| class="wikitable"\n|+Rarity multipliers\n'
ret = ret .. '!Rarity\n!All [[Stats]] multiplier\n!Amount of secondary [[stats]]\n!Item value multiplier\n'
for _, row in ipairs(rows) do
ret = ret .. '|-\n'
for _, cell in ipairs(row) do
ret = ret .. '|' .. tostring(cell) .. '\n'
end
end
ret = ret .. '|}'
return ret
end
return p