Affinity, also known as base hit chance, is a multiplier in the hit chance calculations that contributes largely to the accuracy of an attack. It is a number which normally ranges between 0 and 100 and is effectively a percentage modifier to attack accuracy; the higher the affinity, the higher the hit chance of the attack is.
Monsters and players have affinity values for each combat style. Monster affinities are fixed, but player affinities are determined by worn equipment, represented in the Loadout interface by style bonus.
The affinities of a monster are relatively simple. By default, they have the following affinities:
- 90, against their explicit weakness
- 65, against their explicit weakness's style
- 55, against the style they are neutral to
- 45, against the style they are strong against
For example, a monster weak to fire spells would have an affinity of 90 for fire spells; 65 for other magic spells; 55 for melee; and 45 for ranged.
Certain monsters have their affinities hard coded; e.g., many boss monsters have an affinity for every style set to 40.
When a monster has a weakness listed as being an entire style, this generally means that the highest affinity (90) is unused, meaning the tool tip is representative of which style affinity is the highest. Monsters with no weakness also do not use the highest affinity - their other affinities are not necessarily all equal or neutral, either.
Player affinity and style bonusEdit
All armour has a related affinity, which determines how accurate attacks done against it in each style are. This is represented as style bonus in the equipment stats menu, as a positive number for stronger defence (that style has a lower hit chance), a negative number for weaker defence (that style has a higher hit chance), or zero (that style has a neither boosted nor reduced hit chance).
Armour has affinity 65 to the style it is weak to, 55 to the same style, and 45 to the style it is strong to; hybrid armour has 55 affinity to all styles. In summary:
A style bonus of 0 is the same as an affinity of 55, but other style bonuses vary with your total armour, as discussed below.
In all formulae below:
- is your armour value and is your affinity value of:
- or - melee
- or - ranged
- or - magic
- - hybrid
- - total armour of equipped items
- - total armour including natural armour from Defence level
- is a difference in affinities, where is one of the above subscripts.
- is your style bonus, where is one of the above subscripts.
- The function is the truncation function, which removes all digits following the decimal point. For example, ,
Calculating affinity and style bonus from armourEdit
Your affinity to each style is a weighted average:
This can then be used in hit chance calculation.
From here, to calculate the displayed style bonus, we calculate the difference from neutral armour - 55 affinity.
These values are used as a percentage of your total armour to find your style bonus:
Calculating affinity from style bonusEdit
Working in the opposite direction to the above is fairly simple:
Where is the truncated affinity (we cannot work back to the true affinity).
- Rule of thumb
If your style bonus is 10% of your total armour, your affinity is 45 for the positive bonus and 65 for the negative bonus. As the percentage gets lower, your affinity approaches neutral (55). Mixing gear (especially classed gear with hybrid) tends to move affinity from your strongest style to your weakest, making you more vulnerable to your strongest style and less vulnerable to your weaker style, bringing you closer to neutral overall.
The following items and abilities increase the target's affinity, thereby making it easier to hit them. Only one of each can be active at once and they stack additively with each other (i.e. using quake twice won't apply a +4 debuff, but quake with a barrelchest anchor special attack would be +5) up to a maximum of +10. Using the ability again refreshes the duration.
|Guthix staff||+2||1 minute|
|Statius warhammer||+5||1 minute|
|Dragon hatchet||+3||1 minute|
|Barrelchest anchor||+4||1 minute|
|Bone dagger||+2||1 minute|
|(Illuminated) Bandos's Book of War||+3||12 seconds|
- ^ Barrelchest anchor has a 20% chance of increasing affinity.