====== Damage ====== **Damage** in Remixed Dungeon represents the harm dealt by attacks to characters' health. Understanding how damage is calculated is crucial for effective gameplay. ==== Damage Types ==== * **Physical Damage**: Standard damage reduced by armor * **Magical Damage**: Bypasses some physical defenses * **Elemental Damage**: Fire, ice, poison, etc., with different effects * **Direct Damage**: Damage that ignores armor and other defenses ==== Damage Calculation ==== * **Base Weapon Damage**: The minimum and maximum damage values of the attacking weapon * **Armor Reduction**: Physical damage is reduced by the target's Defense Rating (DR) * **Random Factor**: Damage dealt is a random value between minimum and maximum damage * **Critical Hits**: Occasional attacks that deal increased damage * **Status Effects**: Buffs/debuffs can modify damage dealt or received ==== Factors Affecting Damage ==== * **Weapon Strength**: Higher-level weapons generally deal more damage * **Hero Strength**: Some weapons scale with hero's strength stat * **Weapon Enchantments**: Special properties that can modify damage * **Armor**: Reduces incoming physical damage * **Distance**: Some ranged attacks have damage penalties at range * **Status Effects**: Various buffs and debuffs can affect damage output * **Upgrades**: Enhanced weapons and armor provide better damage statistics ==== Special Damage Effects ==== * [[en:rpd:bleeding_buff|Bleeding]]: Damage dealt over time * [[en:rpd:poison_buff|Poisoning]]: Damage dealt over time with additional effects * [[en:rpd:burning_buff|Burning]]: Fire damage over time * [[en:rpd:charm_buff|Charm]]: Non-damaging effect that changes enemy behavior * [[en:rpd:paralysis_buff|Paralysis]]: Temporary immobilization effect * [[en:rpd:blindness_buff|Blindness]]: Reduces accuracy of affected targets ==== Reducing Damage ==== * [[en:rpd:armor|Armor]]: Primary defense against physical damage * [[en:rpd:resistances|Resistances]]: Special resistances to specific damage types (poison, fire, etc.) * [[en:rpd:evasion|Evasion]]: Dodging attacks entirely * [[en:rpd:blink_spell|Blink]]: Teleportation to avoid damage * [[en:rpd:invisibility_buff|Invisibility]]: Avoiding attacks while unseen * [[en:rpd:shield_buff|Shielding]]: Temporary damage absorption barriers ==== Damage-Related Mechanics ==== * [[en:rpd:combat_mechanics|Combat]]: How damage fits into the combat system * [[en:rpd:health_mechanic|Health]]: How damage affects hit points * [[en:rpd:status_effects|Status Effects]]: Damage over time and other related effects ==== Code References ==== * **Combat system**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/Char.java#L128-L160|Char.java combat system]] * **Damage calculation**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/Char.java#L142-L158|Damage calculation in Char.java]] * **Weapon damage**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/Weapon.java#L67-L77|Weapon damage calculation]] * **Armor protection**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/Armor.java#L125-L135|Armor protection system]] * **Status effects**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/|Buffs directory for damage-over-time effects]] ==== Related ==== * [[en:rpd:combat|Combat]] * [[en:rpd:weapon|Weapon]] * [[en:rpd:armor|Armor]] * [[en:rpd:health_mechanic|Health]] * [[en:rpd:battle_mechanics|Battle Mechanics]] * [[en:rpd:status_effects|Status Effects]] {{tag> rpd mechanics combat damage}}