mr:rpd:water_elemental_mob
Table of Contents
mr:water_elemental_mob
Machine-readable reference for the Water Elemental mob entity in Remixed Dungeon.
Entity Type
Mob (Elemental)
Java Implementation
- Class: `com.nyrds.pixeldungeon.mobs.elementals.WaterElemental`
- File: `RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/elementals/WaterElemental.java`
- Base Class: `MultiKindMob` (supports multiple variants based on depth)
- Interfaces: `IDepthAdjustable` (stats scale with dungeon depth)
Stats Formula
Stats are calculated via `adjustStats(int depth)` method:
- HP/HT: `depth * 5 + 1`
- Base Defense Skill: `depth * 2 + 1`
- Base Attack Skill: `baseDefenseSkill / 2 + 1`
- Damage Min/Max: `ht() / 2` (both min and max are equal)
- Damage Resistance (DR): `expForKill / 3` = `(depth + 1) / 3`
- EXP for Kill: `depth + 1`
- Max Level: `depth + 2`
- Kind: `Math.min(depth/5, 4)` (5 variants, kind 0-4 based on depth)
- Carcass Chance: 0 (does not drop carcasses)
Immunities
Set in `adjustStats()` method:
- `Frost.class` - Immune to frost effects
- `ScrollOfPsionicBlast.class` - Immune to psionic blast
- `Bleeding.class` - Immune to bleeding
Special Abilities
- Attack Proc (`attackProc()` method): 50% chance (`Random.Int(2) == 0`) to apply `Freezing.affect()` to enemy position
- Water Healing (`act()` method): Heals `expForKill` HP when standing on water tiles (`level().water[getPos()]`)
- Frost Buff Handling (`add()` method): When Frost buff is added and `hp() < ht()`, heals `expForKill` instead of taking damage
- Burning Vulnerability: Takes `Random.NormalIntRange(1, ht() / 3)` damage from Burning buff
Movement Speed
- In Liquid: `super.speed() * 2f` (2x speed) - checked via `TerrainFlags.is(level().map[getPos()], TerrainFlags.LIQUID)`
- On Dry Land: `super.speed() * 0.5f` (0.5x speed)
Loot Table
Defined in constructor:
- PotionOfFrost: 10% drop chance (`loot(new PotionOfFrost(), 0.1f)`)
String Resources
- Name and description keys follow pattern: `WaterElemental_Name` and `WaterElemental_Info`
- Located in: `RemixedDungeon/src/main/res/values/strings_all.xml`
Related Entities
- Parent Class: `MultiKindMob` - supports variant system
- Related Elementals: Fire Elemental, Air Elemental, Earth Elemental
- Loot Item: `PotionOfFrost` class
Code References
Wiki Pages
- English: Water Elemental
- Machine-readable namespace: `mr:water_elemental_mob`
mr/rpd/water_elemental_mob.txt · Last modified: by 127.0.0.1
