Module:WeaponDPS: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
function p.dps(frame) | function p.dps(frame) | ||
local str = tonumber(frame.args. | -- Try each stat in priority order: Strength > Magic > Ranged | ||
local str = tonumber(frame.args.strength) or | |||
tonumber(frame.args.magic) or | |||
tonumber(frame.args.ranged) | |||
local ticks = tonumber(frame.args.ticks) | local ticks = tonumber(frame.args.ticks) | ||