Module:WeaponDPS: Difference between revisions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
end | end | ||
-- Theoretical DPS formula ( | -- Theoretical DPS formula (accuracy removed, balanced) | ||
function p.dps(frame) | function p.dps(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local strength = tonumber(args["strength"]) or 0 | local strength = tonumber(args["strength"]) or 0 | ||
local magic = tonumber(args["magic"]) or 0 | local magic = tonumber(args["magic"]) or 0 | ||
Line 26: | Line 25: | ||
local offensiveStat = strength + magic + range | local offensiveStat = strength + magic + range | ||
-- | -- Scaled-down DPS formula | ||
local dps = | local dps = offensiveStat * attacksPerSecond * 0.1 | ||
return string.format("%.2f", dps) | return string.format("%.2f", dps) |