mr:bat_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:bat_mob [2026/03/02 01:03] – Wiki improvements for 5 random pages analysis Qwen Assistant | mr:bat_mob [2026/03/02 01:04] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Bat Mob - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Russian (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Entity Mechanics ===== | ||
| + | * **HP**: 30 (base) - Set via '' | ||
| + | * **Defense Skill**: 15 - Set via '' | ||
| + | * **Attack Skill**: 16 - Set via '' | ||
| + | * **Damage**: 6-12 - Set via '' | ||
| + | * **Defense (DR)**: 4 - Implemented in '' | ||
| + | * **EXP for Kill**: 7 - Set via '' | ||
| + | * **Max Level**: 15 - Set via '' | ||
| + | * **Speed**: 2.0 (flying, faster than normal) - Set via '' | ||
| + | * **Flying**: true (immune to ground traps) - Set via '' | ||
| + | * **Leech Resistance**: | ||
| + | * **Loot**: Potion of Healing (12.5% drop chance) - Set via '' | ||
| + | * **Special Ability**: Heals for damage dealt on attack (vampiric) - Implemented in '' | ||
| + | |||
| + | ===== Code Implementation Details ===== | ||
| + | The Bat class extends '' | ||
| + | <code java> | ||
| + | // In Bat.java constructor | ||
| + | public Bat() { | ||
| + | hp(ht(30)); | ||
| + | baseDefenseSkill = 15; | ||
| + | baseAttackSkill | ||
| + | baseSpeed = 2f; | ||
| + | dmgMin = 6; | ||
| + | dmgMax = 12; | ||
| + | expForKill = 7; | ||
| + | maxLvl = 15; | ||
| + | flying = true; | ||
| + | loot(PotionOfHealing.class, | ||
| + | addResistance( Leech.class ); | ||
| + | } | ||
| + | |||
| + | // Defense rating | ||
| + | @Override | ||
| + | public int dr() { | ||
| + | return 4; | ||
| + | } | ||
| + | |||
| + | // Vampiric attack - heals bat for damage dealt | ||
| + | @Override | ||
| + | public int attackProc(@NotNull Char enemy, int damage ) { | ||
| + | heal(damage, | ||
| + | return damage; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Related mr: Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/bat_mob.txt · Last modified: by 127.0.0.1
