Combat: Difference between revisions

51 bytes removed ,  29 December 2021
→‎Max Hit: Simplify formulas
(→‎Melee and Ranged Max Hit: Correct Base max hit formula)
(→‎Max Hit: Simplify formulas)
Line 165: Line 165:
Given these figures, the base max hit (i.e. max hit before modifiers) is then calculated as:
Given these figures, the base max hit (i.e. max hit before modifiers) is then calculated as:


<math>\text{Base Max Hit} = \left \lfloor 10 \times \left ( 2.2 + \frac{\text{Effective Skill Level}}{10} + \frac{\text{Strength Bonus}}{80} + \frac{\left ( \text{Effective Skill Level} + 9 \right ) \times \text{Strength Bonus}}{640} \right ) \right \rfloor</math>
<math>\text{Base Max Hit} = \left \lfloor 10 \times \left ( 2.2 + \frac{\text{Effective Skill Level}}{10} + \frac{\text{Effective Skill Level} + 17}{640} \times \text{Strength Bonus} \right ) \right \rfloor</math>


This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global max hit increases as well as increases specific to the relevant attack type:
This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global max hit increases as well as increases specific to the relevant attack type:
Line 179: Line 179:
For [[Magic#Standard Magic|standard spells]], first determine the max hit stated in the spell's description along with the player's effective {{Skill|Magic}} level by using the same effective level formula as [[#Melee and Ranged Max Hit|Melee and Ranged max hit]] does. The base max hit is then:
For [[Magic#Standard Magic|standard spells]], first determine the max hit stated in the spell's description along with the player's effective {{Skill|Magic}} level by using the same effective level formula as [[#Melee and Ranged Max Hit|Melee and Ranged max hit]] does. The base max hit is then:


<math>\text{Base Max Hit} = \left \lfloor 10 \times \text{Spell Max Hit} \times \left ( 1 + \frac{\text{Magic Damage Bonus}}{100} \right ) \times \left ( 1 + \frac{1 + \text{Effective Magic Level}}{200} \right ) \right \rfloor</math>
<math>\text{Base Max Hit} = \left \lfloor 10 \times \text{Spell Max Hit} \times \left ( 1 + \frac{\text{Magic Damage Bonus}}{100} \right ) \times \left ( 1 + \frac{\text{Effective Magic Level} + 1}{200} \right ) \right \rfloor</math>


This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global and magic max hit increases. Any damage increases with the same element as the spell being used (such as that provided by the {{ItemIcon|Cloudburst Staff}}) are also added to the flat max hit modifier:
This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global and magic max hit increases. Any damage increases with the same element as the spell being used (such as that provided by the {{ItemIcon|Cloudburst Staff}}) are also added to the flat max hit modifier: