User Tools

Site Tools


mr:shadow_lord_mob

Shadow Lord Mob - Code References

Java Classes

JSON Configuration

String Resources

<string name="ShadowLord_Name">Shadow Lord</string>
<string name="ShadowLord_Intro">Intro dialogue when spawning minions</string>
<string name="ShadowLord_Death">Death dialogue</string>

Lua Scripts

This entity is implemented in Java, no Lua script exists

Key Implementation Details

  • HP/HT: 260 (set in constructor: hp(ht(260)))
  • Base Defense Skill: 40
  • Base Attack Skill: 30
  • Damage Range: 30-40
  • Damage Reduction: 40
  • EXP for Kill: 60
  • Drops: Scroll of Weapon Upgrade (guaranteed)
  • Walking Type: ABSOLUTE

Special Abilities

  • spawnShadow(): Spawns a Shadow mob next to the Shadow Lord using WandOfBlink.appear()
  • spawnWraith(): Spawns 4 Wraiths at empty cells next to the Shadow Lord
  • twistLevel(): Transforms the level by:
    1. Creating an empty level with LevelTools.makeEmptyLevel()
    2. Building a maze with LevelTools.buildShadowLordMaze() (6 iterations)
    3. Spawning a Crystal at a pedestal location
    4. Filling area with Darkness blob (5×5 area)
  • canAttack(): Can attack targets within distance < 4 with clear Ballistica path
  • fx(): Uses purpleLight magic missile with zap sound effect
  • damage(): When damaged:
    1. Enters Fleeing state
    2. Blinks away from attacker using CharUtils.blinkAway()
    3. Calls twistLevel() to transform the arena
    4. Sets cooldown to 10 turns
  • act(): Per-turn behavior:
    1. Decrements cooldown
    2. When fleeing and cooldown < 0: returns to Wandering state, spawns minions (70% Wraith, 30% Shadow)
    3. Heals from Darkness blobs at current position
    4. Takes 1 damage from Foliage blobs (with bone particle effect)
  • die(): On death:
    1. Plays death dialogue
    2. Resets level with LevelTools.makeEmptyLevel()
    3. Unseals the level
    4. Validates SHADOW_LORD_SLAIN badge

Immunities and Resistances

  • Inherits from Boss class
  • Special interaction with Darkness (healing) and Foliage (damage) blobs

Code References

mr/shadow_lord_mob.txt · Last modified: by 127.0.0.1