# Preservation Chance

Preservation Chance is a modifier which allows resources to be preserved when creating items, allowing for the creation of items at no cost to the player. When resource preservation triggers, the player will receive a notification stating "You managed to preserve your resources".

The chance to preserve resources only applies when creating items within a skill, it does not affect the consumption of potion doses, tablets, or prayer points. Rune Preservation and Ammo Preservation are also separate modifiers, which allow for the preservation of runes and ammunition respectively.

The preservation chance for all skills is capped at 80%, unless a modifier which increases the cap applies.

## Sources

Below is a list of many things other than bonuses and synergies which provide a chance to preserve resources. Another notable mention is that the gains 15% preservation chance (for a total of 25%) when the player has at least one within their Bank.

## Chance Cap

The preservation chance for all skills is capped at 80%. For a few skills, there exists bonuses which can increase this cap:

• The & synergy can increase the cap for by 5%
• The & synergy can increase the cap for by 5%

## Calculating Gains

Let's say you have 120 bars, 80% resource preservation, and 0% doubling chance. If a dagger takes one bar to create, how many daggers would you create on average out of 120 bars?

The answer is $\displaystyle{ \frac{120}{1 - 80/100} = \frac{120}{0.2} = 600. }$

The main idea behind resource preservation is that you can reuse the preserved resources to make more items, but those resources when used will themselves be preserved also.

Using the same example with 120 bars, you take 120 actions producing 120 daggers, but with 80% preservation you are left with $\displaystyle{ 120 \times 0.8 = 96 }$ bars.

Now you can use those 96 bars to do the same thing, and you will be left with $\displaystyle{ 96 \times 0.8 = 76.8 }$ bars on average.

Repeat that to infinity, and you will get the average number of daggers that you will produce from 120 bars.

But how do we calculate this number?

So the number of daggers produced is $\displaystyle{ 120 + (120 \times 0.8) + (120 \times 0.8 \times 0.8) +\cdots + (120 \times 0.8^n) }$ where $\displaystyle{ n }$ goes to infinity.

If we generalize and represent the number of starting resources ($\displaystyle{ 120 }$) with $\displaystyle{ a }$ and the probability ($\displaystyle{ 0.8 }$) with $\displaystyle{ r }$, the number of actions performed with $\displaystyle{ a }$ action's worth of starting resources and a resource preservation of $\displaystyle{ r }$ (where $\displaystyle{ 0 \le r \lt 1 }$) can be expressed as follows:

$\displaystyle{ a + (a \times r) + (a \times r \times r) + \cdots + (a \times r^n) = \sum\limits^{\infty}_{n=0} ar^n }$

This expression is an infinite geometric series, which can simply be expressed as $\displaystyle{ \displaystyle \lim_{n \to \infty}\tfrac{a(1 - r^n)}{1 - r} = \frac{a}{1 - r} }$.

So, coming back to our example where $\displaystyle{ a = 120 }$ and $\displaystyle{ r = 0.8 }$, we get $\displaystyle{ \frac{120}{1 - 0.8} = 600 }$.