en:rpd:armor_mechanic
Table of Contents
Armor Mechanic
Armor in Remixed Dungeon provides protection by reducing damage from physical attacks. Each piece of armor has a defense rating that contributes to the hero's overall survivability.
Armor Stats
- Defense Rating (DR): How much damage is reduced from incoming attacks
- Durability: How much damage the armor can take before breaking
- Level/Upgrades: Armor can be upgraded to improve its defense rating
- Speed Penalty: Heavier armor may slow hero movement
- Stealth Penalty: Heavier armor may reduce stealth effectiveness
- Required Strength: Minimum strength needed to wear armor without penalties (calculated by
requiredSTR()method)
Types of Armor
- Cloth Armor - Lightest armor with minimal protection
- Leather Armor - Balanced protection and mobility
- Mail Armor - Good protection with moderate penalties
- Plate Armor - Maximum protection with significant penalties
- Class Armor - Special armor for each hero class
Armor Mechanics
- Absorption: Armor absorbs a percentage of incoming physical damage
- Durability: All armor takes damage when absorbing hits and can break if not maintained
- Identification: Most armor must be identified to show full stats
- Upgrading: Armor can be upgraded using Scroll of Upgrade or similar items
- Glyphping: Armor can be enchanted with Glyphs to gain special properties
- Defense Calculation: Effective defense is calculated in
effectiveDr()method:tier * 2 + level() * tier + (glyph != null ? tier : 0) - Strength Requirement: Calculated in
requiredSTR()method:Math.max(typicalSTR() - level(),2) - Typical Defense:
typicalDR()method returnstier * 2 - Typical Strength:
typicalSTR()method returns7 + tier * 2
Special Armors
- Class-specific armor - Unique armor for each hero class with special abilities
- Glyphs - Magical properties that can be added to armor
- Upgrades - Increasing armor effectiveness through scrolls and other means
Code References
- Base class: Armor.java
- Armor implementations: Armor Implementations Directory
- Glyph system: Armor Glyphs Directory
- Defense calculation: effectiveDr() method
- Strength calculation: requiredSTR() method
- Defense formula: typicalDR() and typicalSTR() methods
- Glyphping implementation: inscribe() method
- Damage defense processing: defenceProc() method
- Armor upgrade process: upgrade() method
- String resources (English): Armor strings
- String resources (Russian): Armor strings
Related
en/rpd/armor_mechanic.txt · Last modified: by 127.0.0.1
