Alex
Created page with "local p = {}; local lang = mw.language.getContentLanguage() local rarity_class = { { 1, 'table-bg-blue' }, { 1/25, 'table-bg-green' }, { 1/99.99, 'table-bg-yellow' }, { 1/999.99, 'table-bg-orange' }, { 1/9999999, 'table-bg-red' } } function get_rarity_class(val) for i,v in ipairs(rarity_class) do curr = v if val >= v[1] then break end end return curr[2] end function sigfig(n, f) f = math.floor(f-1) if n == 0 then return 0 end local m = math.floor(m..."