mr:boss_mob
Table of Contents
Boss Mob - Code References
Java Classes
- Boss.java - Abstract base class for all boss mobs
- Mob.java - Parent mob class
- 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
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 in Java. Some custom boss behaviors may be implemented in Lua scripts in scripts/ directory.
Key Implementation Details
- Abstract Class: Boss is an abstract class that extends Mob
- Boss Flag: isBoss = true (set in constructor)
- 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 (Boss.java)
- Last updated: 2026-04-05 based on current codebase analysis
- Verified against: RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Boss.java
- Key properties: isBoss=true, maxLvl=50, cannotBePet, Death/PsionicBlast resistance
mr/boss_mob.txt · Last modified: by 127.0.0.1
