FANDOM


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.

Monster affinityEdit

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:

Armour class Affinities
Attack Ranged Magic
Melee 55 45 65
Ranged 65 55 45
Magic 45 65 55
Hybrid 55 55 55

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.

VariablesEdit

In all formulae below:

  • A is your armour value and Aff is your affinity value of:
    • A_{Melee} or Aff_{Melee} - melee
    • A_{Ranged} or Aff_{Ranged} - ranged
    • A_{Magic} or Aff_{Magic} - magic
    • A_{Hybrid} - hybrid
    • A_{Worn} = A_{Melee} + A_{Ranged} + A_{Magic} + A_{Hybrid} - total armour of equipped items
    • A_{Total} = A_{Worn} + A_{Def} - total armour including natural armour from Defence level
  • \Delta Aff_a is a difference in affinities, where a is one of the above subscripts.
  • S_a is your style bonus, where a is one of the above subscripts.
  • The \text{trunc}( X ) function is the truncation function, which removes all digits following the decimal point. For example, \text{trunc}( 8.2 ) = 8, \text{trunc}( -3.8 ) = -3

Calculating affinity and style bonus from armourEdit

Your affinity to each style is a weighted average:

\begin{align}
Aff_{Melee} & = & \frac{45 A_{Magic} + 65 A_{Ranged} + 55 A_{Melee} + 55 A_{Hybrid}}{A_{Worn}} \\
\\
Aff_{Ranged} & = & \frac{45 A_{Melee} + 65 A_{Magic} + 55 A_{Ranged} + 55 A_{Hybrid}}{A_{Worn}} \\
\\
Aff_{Magic} & = & \frac{45 A_{Ranged} + 65 A_{Melee} + 55 A_{Magic} + 55 A_{Hybrid}}{A_{Worn}} \\
\end{align}

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.

\begin{align}
\Delta Aff_{Melee} & = & 55 - \text{trunc}( Aff_{Melee} ) \\
\\
\Delta Aff_{Ranged} & = & 55 - \text{trunc}( Aff_{Ranged} ) \\
\\
\Delta Aff_{Magic} & = & 55 - \text{trunc}( Aff_{Magic} ) \\
\end{align}

These values are used as a percentage of your total armour to find your style bonus:

\begin{align}
S_{Melee} & = & \frac{\Delta Aff_{Melee} \times A_{Total}}{100} \\
\\
S_{Ranged} & = & \frac{\Delta Aff_{Ranged} \times A_{Total}}{100} \\
\\
S_{Magic} & = & \frac{\Delta Aff_{Magic} \times A_{Total}}{100} \\
\end{align}

Calculating affinity from style bonusEdit

Working in the opposite direction to the above is fairly simple:

\begin{align}
\widehat{Aff_{Melee}} & = & 55 - \frac{100 S_{Melee}}{A_{Total}} \\
\\
\widehat{Aff_{Ranged}} & = & 55 - \frac{100 S_{Ranged}}{A_{Total}} \\
\\
\widehat{Aff_{Magic}} & = & 55 - \frac{100 S_{Magic}}{A_{Total}} \\
\end{align}

Where \widehat{Aff} 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.

Affinity modifiersEdit

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.

Effect Debuff
amount
Duration
Abilities
Quake +2 1 minute
Special attacks
Guthix staff +2 1 minute
Statius warhammer +5 1 minute
Dragon hatchet +3 1 minute
Barrelchest anchor[1] +4 1 minute
Bone dagger +2 1 minute
Passives
(Illuminated) Bandos's Book of War +3 12 seconds
  1. ^ Barrelchest anchor has a 20% chance of increasing affinity.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.