Module:Damage: Difference between revisions

no edit summary
No edit summary
Tag: Manual revert
No edit summary
 
Line 2: Line 2:


local bit32 = require( 'bit32' )
local bit32 = require( 'bit32' )
function p.calcRD( frame )
    local sharpness = frame.args[1] * frame.args[5]
    local weight = frame.args[2] * frame.args[6]
    local fire = frame.args[3] * frame.args[7]
    local magic = frame.args[4] * frame.args[8]
    local all = sharpness + weight + fire + magic
    local result = bit32.rshift(all, 2) * 25
    return result
end


function p.calc( frame )
function p.calc( frame )