Module:WeaponDPS
Documentation for this module may be created at Module:WeaponDPS/doc
local p = {}
function p.dps(frame)
local str = tonumber(frame.args.str)
local ticks = tonumber(frame.args.ticks)
if not str or not ticks or ticks == 0 then
return "Invalid input"
end
local maxHit = str / 8
local seconds = ticks * 0.6
local dps = maxHit / seconds
return string.format("%.2f DPS (Max Hit: %.2f)", dps, maxHit)
end
return p