Editing
Module:WeaponDPS
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} function p.dps(frame) local args = frame.args local parent = frame:getParent() local str = tonumber(args.Strength or parent.args.Strength) or 0 local acc = tonumber(args.Accuracy or parent.args.Accuracy) or 0 local ticks = tonumber(args.Speed or parent.args.Speed) if (str == 0 and acc == 0) then return "No STR or ACC" end if not ticks then return "No speed" end local effectiveStr = str + acc local maxHit = effectiveStr / 16 local seconds = ticks * 0.6 local dps = maxHit / seconds return '<abbr title="Theoretical damage per second">' .. string.format('%.2f', dps) .. '</abbr>' end return p
Summary:
Please note that all contributions to HighSpell Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
HighSpell Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:WeaponDPS/doc
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Module
Discussion
English
Views
Read
Edit
View history
More
Purge cache
Search
Discord
Discord
Navigation
Main page
Wiki policies
Style guide
Recent changes
Random page
HighSpell
Bestiary
Equipment
Quests
Skills
Shops
Game Maps
Overworld
Underground
Tools
What links here
Related changes
Special pages
Page information
Cargo data