Thieving: Difference between revisions

61 bytes added ,  29 October 2021
Amended various chance formulas
m (→‎NPC Unique Item Chance: The formula in code is stealth / 100 / perception, which is then rolled against a random 0-1 value multiplied by 100, thus effectively dividing the chance by 100 again and 10000x perception)
(Amended various chance formulas)
Line 53: Line 53:


==== Success Rate ====
==== Success Rate ====
The chance of success is <math>100 \times \tfrac{100 + \text{Stealth}}{100 + \text{Perception}}\%</math>, resulting in a guaranteed success once the player's stealth is the same or greater than the NPC's perception. Some NPCs have a perception that is greater than the maximum possible stealth, therefore it is not always possible to guarantee each pickpocket attempt will succeed.
The chance of success is <math>min\left(1, 100 \times \tfrac{100 + \text{Stealth}}{100 \times \left ( 100 + \text{Perception} \right )}\right)</math>, resulting in a guaranteed success once the player's stealth is the same or greater than the NPC's perception. Some NPCs have a perception that is greater than the maximum possible stealth, therefore it is not always possible to guarantee each pickpocket attempt will succeed.


==== Item Doubling ====
==== Item Doubling ====
The additional chance to double items due to stealth is <math>25 \times \tfrac{\text{Stealth}}{\text{Perception}}\%</math>, double items can therefore be guaranteed from stealth alone if the player's stealth is at least four times the NPC's perception. This is additive with the chance to double items provided by other [[#Skill Boosts|Thieving specific]] and [[Double Loot|global]] sources (up to a maximum of 100%), and multiplicative with the 35% chance of quadruple items from the {{ItemIcon|Leprechaun}} and {{ItemIcon|Devil}} [[Summoning#Synergies|synergy]], for a potential 8x multiplier to items received from Thieving.
The additional chance to double items due to stealth is <math>min\left(1, \tfrac{\text{Stealth}}{400 \times \text{Perception}}\right)</math>, double items can therefore be guaranteed from stealth alone if the player's stealth is at least four times the NPC's perception. This is additive with the chance to double items provided by other [[#Skill Boosts|Thieving specific]] and [[Double Loot|global]] sources (up to a maximum of 100%), and multiplicative with the 35% chance of quadruple items from the {{ItemIcon|Leprechaun}} and {{ItemIcon|Devil}} [[Summoning#Synergies|synergy]], for a potential 8x multiplier to items received from Thieving.


The item multiplier applies to all possible item drops, being: NPC common drops, general rare drops, [[#Thieving Targets|NPC unique drops]], and [[#Areas|area unique drops]].
The item multiplier applies to all possible item drops, being: NPC common drops, general rare drops, [[#Thieving Targets|NPC unique drops]], and [[#Areas|area unique drops]].


==== NPC Unique Item Chance ====
==== NPC Unique Item Chance ====
The chance to receive an NPC's unique item upon a successful pickpocket attempt is <math>\tfrac{100 + \text{Stealth}}{10000 \times \text{Perception}}\%</math>.
The chance to receive an NPC's unique item upon a successful pickpocket attempt is <math>\tfrac{100 + \text{Stealth}}{10000 \times \text{Perception}}</math>.


=== Loot ===
=== Loot ===