Module:WeaponDPS: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
Line 10: | Line 10: | ||
end | end | ||
-- Theoretical DPS formula (accuracy = 1/ | -- Theoretical DPS formula (accuracy = 1/2 of a damage stat) | ||
function p.dps(frame) | function p.dps(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
Line 26: | Line 26: | ||
-- Weight accuracy as one-third of a damage stat | -- Weight accuracy as one-third of a damage stat | ||
local weightedStat = (accuracy / | local weightedStat = (accuracy / 2) + strength + magic + range | ||
-- Scaled DPS calculation | -- Scaled DPS calculation |