Module:DropRateCalc
Need to test if Larran's keys are buffed, specifically for Template:CallistoDrops and the other bosses like that.
local p = {}
local buffs = {
{label = "Base", mult = 1.00},
{label = "Donator", mult = 1.15},
{label = "Super Donator", mult = 1.25},
{label = "Extreme Donator",mult = 1.30},
{label = "Legendary Donator", mult = 1.35},
{label = "Royal Donator", mult = 1.40},
{label = "Divine Donator", mult = 1.45},
}
function p.calc(frame)
local base = tonumber(frame.args[1])
if not base then return "Invalid base rate" end
local cells = {}
for _, tier in ipairs(buffs) do
table.insert(cells, "1/" .. math.floor(base / tier.mult + 0.5))
end
return table.concat(cells, " || ")
end
return p