====== Defence Skill ====== **Defence Skill** is a core game mechanic that determines a character's ability to avoid incoming attacks in combat. ==== Overview ==== Defence Skill represents a character's ability to dodge or parry attacks. It's used in the combat resolution system to determine if an attack hits or misses. ==== Calculation ==== The base defence skill is calculated based on: * **Hero**: Affected by [[rpd:armor|armor]] and [[rpd:accessories|rings]] like [[rpd:ring_of_evasion_item|Ring of Evasion]] * **Mobs**: Each mob has a base defence skill value defined in its class ==== Combat Mechanics ==== When an attack is made, the game compares the attacker's [[rpd:attack_skill|attack skill]] with the defender's defence skill. Higher defence skill makes the character harder to hit. ==== Affected Items ==== * [[rpd:ring_of_evasion_item|Ring of Evasion]] - Increases defence skill by its level amount * [[rpd:armor|Armor]] - Provides defence bonus based on its tier and level * [[rpd:shields|Shields]] - Additional defensive items ==== References ==== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/Char.java#L137-L150|Char.java defence calculation]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/hero/Hero.java#L445-L450|Hero defence mechanics]] {{tag> rpd mechanics combat defence}}