mr:boss_mob
Table of Contents
Boss Mob - Code References
Java Classes
- Mob.java - Parent mob class that all bosses extend
- Hunting.java - AI state used for battle music
- SkeletonKey.java - Key dropped by bosses
- ScrollOfPsionicBlast.java - Item bosses resist
- Death.java - Enchantment bosses resist
JSON Configuration
- Boss mobs are configured through individual JSON files in mobsDesc/ directory
- Specific boss configurations:
String Resources
- English: strings_all.xml - Search for “_Name� and “_Desc� patterns for boss entities
- Russian: strings_all.xml - Russian translations for boss entities
- All languages: Search for boss entity names in res/ directory
Lua Scripts
Boss entities are primarily implemented via JSON configuration. Some custom boss behaviors may be implemented in Lua scripts in scripts/ directory.
Key Implementation Details
- Base Class: All bosses extend Mob.java; there is no separate Boss.java class
- Boss Flag: isBoss = true (set in JSON configuration via “boss�: true)
- Max Level: maxLvl = 50 (all bosses scale to level 50 maximum)
- Pet Immunity: cannotBePet() returns true (bosses cannot be pets)
- Death Enchantment Resistance: Adds resistance to Death enchantment
- Psionic Blast Resistance: Adds resistance to ScrollOfPsionicBlast
- Battle Music: Plays custom battle music when in Hunting state
- Level Unsealing: Unseals the level when boss dies (via level().unseal())
- Boss Slain Event: Triggers GameScene.bossSlain() on death
- Skeleton Key: Bosses carry a SkeletonKey (restored from bundle for old saves)
- Music Fallback: Uses battleMusicFallback if primary battleMusic is not found
- Mod Support: Supports ModQuirks.mobLevel for custom boss leveling
- ShadowLord Exception: ShadowLord boss does not get SkeletonKey restoration fix
Known Boss Entities
Related mr Entities
- King_Mob - Example boss implementation
- Undead_Mob - Minions summoned by King boss
Content Verification
- Information source: Java code (Mob.java) + JSON configurations (mobsDesc/*.json)
- Last updated: 2026-11-22 based on current codebase analysis
- Verified against: RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Mob.java and mobsDesc/*.json
- Key properties: isBoss=true (JSON), maxLvl=50, cannotBePet, Death/PsionicBlast resistance
mr/boss_mob.txt · Last modified: by 127.0.0.1
