rpd:health_mechanic
Table of Contents
Health Mechanic
Health (or Hit Points/HP) represents the amount of damage a character can take before dying. Heroes start with different base HP depending on difficulty: 30 HP on normal difficulty and 20 HP on higher difficulties. This can be increased by finding a Potion of Might or through other game mechanics.
Mechanics
- Maximum HP: The upper limit of health a character can have
- Current HP: The amount of health currently remaining
- Restoration: Health can be restored through various means:
- Potion of Healing and similar potions
- Herbalism (eating raw vegetables)
Effects on Low Health
- If health reaches 0, the character dies
Related Pages
Code References
- Char.java - Base character class with health mechanics (hp(), ht() methods)
- Hero.java - Hero-specific health implementation including starting HP
- Hero.java#L120-L126 - Starting HP based on difficulty level
- Char.java#L1312-L1320 - HP and HT getter/setter methods
JSON Configuration
- Various mob configuration files in
RemixedDungeon/src/main/assets/mobsDesc/define HP values for enemies RemixedDungeon/src/main/assets/hero/initHeroes.json- Defines starting health for hero classes
String Resources
- Health-related strings can be found in
RemixedDungeon/src/main/res/values-ru/strings_all.xmland other language resource files
rpd/health_mechanic.txt · Last modified: by 127.0.0.1
