en:rpd:melee_combat_mechanic
Table of Contents
Melee Combat Mechanic
Melee Combat is the primary form of combat in Remixed Dungeon, where the hero engages enemies directly in hand-to-hand combat using weapons that require close proximity.
Description
Melee combat involves direct physical engagement between characters. The attacking character must be adjacent to their target to perform a melee attack. This form of combat is the standard for most weapons and character abilities.
Combat Mechanics
- Adjacency Requirement: Attacker and target must be on adjacent cells (including diagonally)
- Attack Roll: Attacker's accuracy vs target's evasion determines hit chance
- Damage Calculation: Weapon damage + random variance, reduced by target's armor
- Attack Speed: Determined by weapon speed and character bonuses
- Critical Hits: 5% base chance to deal 2x damage (modified by various factors)
Accuracy and Evasion
- Accuracy: Affected by weapon's accuracy modifier and character's strength
- Evasion: Based on character's dexterity and armor class
- Penalties: Various conditions can affect accuracy and evasion (darkness, confusion, etc.)
Damage Calculation
- Base Damage: Weapon damage range (min to max value)
- Damage Reduction: Target's armor DR (Damage Reduction) mitigates incoming damage
- Final Damage: (Weapon damage) - (Target armor DR) + randomness factor
Special Considerations
- Encumbrance: Carrying heavy items reduces accuracy and evasion
- Surprise Attacks: Attacking unaware enemies has increased accuracy
- Environmental Effects: Terrain, light, and status effects can influence combat
- Weapon Upgrades: Higher upgrade levels improve both accuracy and damage
Related
Code References
- actMeleeAttack method - Detailed melee attack method implementation
- Attack delay calculation - How melee attack speed is determined
- Combat.java - Detailed combat mechanics including damage calculation
- Weapon accuracy and damage mechanics - How weapon stats affect melee combat
- Hero attack method - How the player character performs melee attacks
String References
- MeleeWeapon strings - UI text for melee weapons
- Attack strings - Attack-related UI text
- Hit strings - Combat result text
en/rpd/melee_combat_mechanic.txt · Last modified: by 127.0.0.1

