Module:WeaponStat: Difference between revisions

m
Weapon stat calculation module
(Created page with "local p = {} local function lerp( x, x0, x1, y0, y1 ) return y0 + (y1 - y0) * (x - x0) / (x1 - x0) end function p.calculate( frame ) local lvl = tonumber(frame.args.lvl)...")
 
m (Weapon stat calculation module)
Line 11:
local val100 = tonumber(frame.args.val100)
return math.ceilfloor(lerp(lvl, 1, 100, val1, val100))
end