====== Nightmare Mob - Code References ====== {{ rpd:images:nightmare_mob.png|Nightmare }} ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/guts/Nightmare.java|Nightmare.java]] ===== JSON Configuration ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/Nightmare.json|Nightmare.json]] - Sprite animation configuration ===== String Resources ===== '' nightmare masculine nightmare A grotesque creature that looks like a bunch of flesh-made tentacles. Nightmares are the incarnation of the Old God's sinister thoughts. '' ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Code Implementation Details ===== This mob has the following properties based on the Java implementation: * **HP**: 80 (`ht(80)`) * **Defense Skill**: 24 (`baseDefenseSkill`) * **Attack Skill**: 26 (`baseAttackSkill`) * **Damage Range**: 20-25 (`dmgMin`/`dmgMax`) * **Damage Reduction**: 10 (`dr`) * **Special Abilities**: * Flying (`flying = true`, can move over terrain obstacles) * Roots proc: 10% chance to root target on attack (`Buff.affect(enemy, Roots.class)`) * Paralysis proc: 10% chance to stun/paralyse target on attack (`Buff.affect(enemy, Stun.class)`; `Stun.attachTo` calls `target.paralyse(true)`) * **Behavior**: Always in hunting state (aggressive) - `act()` calls `setState(MobAi.getStateByClass(Hunting.class))` after `super.act()` * **Exp**: 0 (`expForKill = 0`, no experience gained from killing)