Module:WeaponDPS: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:


     local effectiveStr = str + acc
     local effectiveStr = str + acc
     local maxHit = effectiveStr / 16
     local maxHit = effectiveStr / 14
     local seconds = ticks * 0.6
     local seconds = ticks * 0.6
     local dps = maxHit / seconds
     local dps = maxHit / seconds


     return '<abbr title="Estimated damage per second">' .. string.format('%.2f', dps) .. '</abbr>'
     return '<abbr title="Theoretical damage per second">' .. string.format('%.2f', dps) .. '</abbr>'
end
end


return p
return p