66
edits
(implement combat level calculator) |
mNo edit summary |
||
Line 29: | Line 29: | ||
local baselvl = 0.25 * ( defence + hitpoints + math.floor( prayer * 0.5 ) ) | local baselvl = 0.25 * ( defence + hitpoints + math.floor( prayer * 0.5 ) ) | ||
local offenselvl = 0.325 * ( math.max( attstr, math.floor( magic * 1.5 ), math.floor( ranged * 1.5 ) ) ) | local offenselvl = 0.325 * ( math.max( attstr, math.floor( magic * 1.5 ), math.floor( ranged * 1.5 ) ) ) | ||
local | local lvl = baselvl + offenselvl | ||
-- Calculate what's needed for another combat level | -- Calculate what's needed for another combat level |
edits