en:rpd:evasion_mechanic
Table of Contents
Evasion
Description
Evasion is a defensive mechanic that determines the chance to completely avoid incoming attacks. Higher evasion increases the likelihood of dodging enemy attacks, reducing damage taken.
Evasion Mechanics
- Calculation Formula: Evasion multiplier = 1.2^bonus, where bonus is the sum of defenceSkillBonus from all active buffs (e.g., Ring of Evasion provides its level as bonus)
- Armor Penalty: Heavier armor (required STR higher than hero's effective STR) reduces evasion by dividing it by 1.5^encumbrance
- Class Bonus: Rogues with Freerunner subclass get a 2x evasion multiplier when not starving
- Paralysis Effect: When paralyzed, evasion is halved
- Application: Successful evasion results in no damage taken from the attack
Evasion Sources
- Rings: Ring of Evasion - its Evasion buff provides defenceSkillBonus equal to ring level
- Buffs: Various buffs can provide evasion bonuses via defenceSkillBonus()
- Hero Subclass: Freerunner subclass doubles evasion for Rogues when not starving
Evasion Factors
- Equipment Bonus: Evasion bonus is calculated as 1.2^bonus, where bonus is the sum of defenceSkillBonus from all buffs
- Armor Weight: Heavier armor reduces evasion based on the formula: evasion / (1.5^encumbrance)
- Rogue Subclass: Freerunner subclass doubles evasion when not starving
- Paralysis Status: Halves evasion when paralyzed
Code References
- Evasion Calculation: Char.java:defenseSkill() - How evasion is calculated in the defenseSkill method
- Ring Implementation: RingOfEvasion.java - Ring that provides evasion bonuses via inner Evasion class
- Ring Buff: RingOfEvasion.java:Evasion class - Inner class providing defenceSkillBonus equal to ring level
- Treasury Configs: Treasury.json, SpidersTreasury.json - Where Ring of Evasion appears
See Also
en/rpd/evasion_mechanic.txt · Last modified: by 127.0.0.1

