Combat: Difference between revisions

36 bytes added ,  6 July 2021
Incorrect combat formula, need to round down (floor) for prayer, magic, and ranged values
(→‎Combat Level: Added missing parentheses)
(Incorrect combat formula, need to round down (floor) for prayer, magic, and ranged values)
Line 72: Line 72:
The first formula is used to calculate the player's Base Combat Level.
The first formula is used to calculate the player's Base Combat Level.


<math>\small{ \begin{aligned} \text{Base Combat Level} = 0.25 * (\text{Defence Skill Level} + \text{Hitpoints Skill Level} + (\text{Prayer Skill Level} / 2)) \end{aligned}}</math>
<math>\small{ \begin{aligned} \text{Base Combat Level} = 0.25 * (\text{Defence Skill Level} + \text{Hitpoints Skill Level} + \lfloor\text{Prayer Skill Level} / 2\rfloor) \end{aligned}}</math>


The second set of formulas are used to calculate the player's Offensive Combat Levels, only the highest result is used.
The second set of formulas are used to calculate the player's Offensive Combat Levels, only the highest result is used.
Line 78: Line 78:
<math>\small{\begin{aligned}\text{Melee Combat Level} = 0.325 * (\text{Attack Skill Level} + \text{Strength Skill Level})\end{aligned}}</math>
<math>\small{\begin{aligned}\text{Melee Combat Level} = 0.325 * (\text{Attack Skill Level} + \text{Strength Skill Level})\end{aligned}}</math>


<math>\small{\begin{aligned}\text{Ranged Combat Level} = 0.325 * (3 * \text{Ranged Skill Level} / 2)\end{aligned}}</math>
<math>\small{\begin{aligned}\text{Ranged Combat Level} = 0.325 * \lfloor3 * \text{Ranged Skill Level} / 2\rfloor\end{aligned}}</math>


<math>\small{\begin{aligned}\text{Magic Combat Level} = 0.325 * (3 * \text{Magic Skill Level} / 2)\end{aligned}}</math>
<math>\small{\begin{aligned}\text{Magic Combat Level} = 0.325 * \lfloor3 * \text{Magic Skill Level} / 2\rfloor\end{aligned}}</math>


The third formula is used to calculate the player's Combat Level, rounded down to the nearest whole number.
The third formula is used to calculate the player's Combat Level, rounded down to the nearest whole number.
8

edits