Combat: Difference between revisions

234 bytes removed ,  2 January 2022
Update Evasion rating section
m (→‎Minimum Hit: Push formula to new line)
(Update Evasion rating section)
Line 1: Line 1:
{{V|0.18.2}}
{{V|1.0.1}}
[[File:Combat.svg|thumb|right|Combat]]
[[File:Combat.svg|thumb|right|Combat]]
[[File:Combat Page Map.png|thumb|right|Combat page.]]
[[File:Combat Page Map.png|thumb|right|Combat page.]]
Line 252: Line 252:


=== Evasion Rating ===
=== Evasion Rating ===
==== Melee Evasion Rating ====
<!-- JS source: character.js, function computeEvasion
The first formula is used to calculate the player's Effective Defence Level.
-->The calculation used to determine the player's evasion rating varies depending on the attack type the player is defending against. Each requires the calculation of effective skill levels, the formula for which is as follows:


<math> \small{\begin{aligned} \text{Effective Defence Level} = \text{Defence Skill Level} + 8 \end{aligned}}</math>
<math>\small{\text{Effective Skill Level} = \text{Standard Skill Level} + \text{Hidden Skill Level}}</math>
 
The second formula is used to calculate the player's Melee Evasion Rating. Melee Defence Bonus can be found in Equipment Stats under Defensive Stats with a shield icon. The potion and prayer bonuses will be the relevant numbers written in the potion and prayer descriptions.
 
<math> \small{\begin{aligned} \text{Evasion Rating} = \big\{ &\text{Effective Defence Level} * (\text{Melee Defence Bonus} + 64)\\
&* (1 + \text{Potion Evasion Rating Bonus} / 100) * (1 + \text{Prayer Evasion Rating Bonus} / 100) \big\} \end{aligned}}</math>


==== Ranged Evasion Rating ====
In addition, the player's evasion modifier need to be known. This is the sum of all global evasion rating and the relevant attack type's evasion rating increases, provided from places such as [[Herblore#Combat Potions|Potions]], {{Skill|Agility}}, and {{Skill|Astrology}}.
The first formula is used to calculate the player's Effective Defence Level.


<math> \small{\begin{aligned} \text{Effective Defence Level} = \text{Defence Skill Level} + 9 \end{aligned}}</math>
==== Melee and Ranged Evasion Rating ====
First determine the relevant defence bonus, this will be the melee defence bonus for the {{Icon|Melee}} evasion rating, or the ranged defence bonus for the {{Skill|Ranged}} evasion rating. These stats can be found in the Equipment Stats interface.


The second formula is used to calculate the player's Ranged Evasion Rating. Ranged Defence Bonus can be found in Equipment Stats under Defensive Stats with a bow and arrow icon. The potion and prayer bonuses will be the relevant numbers written in the potion and prayer descriptions.
Given this, the evasion rating is then:


<math> \small{\begin{aligned} \text{Ranged Evasion Rating} = \big\{ &\text{Effective Defence Level} * (\text{Ranged Defence Bonus} + 64)\\
<math>\text{Evasion Rating} = \left \lfloor \left ( \text{Effective Defence Level} + 9 \right ) \times \left ( \text{Defence Bonus} + 64 \right ) \times \left ( 1 + \frac{\text{Evasion Modifier}}{100} \right ) \right \rfloor</math><!--
&* (1 + \text{Potion Evasion Rating Bonus} / 100) * (1 + \text{Prayer Evasion Rating Bonus} / 100) \big\} \end{aligned}}</math>
Note: Strictly the evasion rating calculation also includes an element of scaling when the 'globalEvasionHPScaling' applies, however this is only available through the 'Fleeting Defence' enemy passive, so currently does not apply to the player -->


==== Magic Evasion Rating ====
==== Magic Evasion Rating ====
The first formula is used to calculate the player's Effective Magic Defence Level. The result here is always rounded down to the nearest whole number.
The calculation for Magic evasion is slightly different from that for Melee and Ranged. The defence bonus used should naturally be the magic defence bonus. In addition, the effective defence level becomes a calculation that factors in both the player's effective Defence and Magic levels:


<math> \small{\begin{aligned} \text{Effective Magic Defence Level} = \text{Magic Skill Level} * 0.7 + \text{Defence Skill Level} * 0.3 + 9 \end{aligned}}</math>
<math>\small{\text{Effective Level} = 0.3 \times \text{Effective Defence Level} + 0.7 \times \text{Effective Magic Level}}</math>


The second formula is used to calculate the player's Magic Evasion Rating. Magic Defence Bonus can be found in Equipment Stats under Defensive Stats with a wizard hat icon. The potion and prayer bonuses will be the relevant numbers written in the potion and prayer descriptions.
Then the magic evasion rating becomes:


<math> \small{\begin{aligned} \text{Magic Evasion Rating} = \big\{ &\text{Effective Magic Defence Level} * (\text{Magic Defence Bonus} + 64)\\
<math>\text{Evasion Rating} = \left \lfloor \left ( \text{Effective Level} + 9 \right ) \times \left ( \text{Magic Defence Bonus} + 64 \right ) \times \left ( 1 + \frac{\text{Evasion Modifier}}{100} \right ) \right \rfloor</math>
&* (1 + \text{Potion Evasion Rating Bonus} / 100) * (1 + \text{Prayer Evasion Rating Bonus} / 100) \big\} \end{aligned}}</math>


{{Menu}}
{{Menu}}