Module:Combat Level: Difference between revisions

m
no edit summary
(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 combatlvl = baselvl + offenselvl
     local lvl = baselvl + offenselvl


     -- Calculate what's needed for another combat level
     -- Calculate what's needed for another combat level
66

edits