User Tools

Site Tools


mr:chaos_staff_item

Chaos Staff Item - Code References

Java Classes

JSON Configuration

This entity does not use JSON configuration. It is implemented entirely in Java code.

String Resources

<string name="ChaosStaff_Name">chaos staff</string>
<string name="ChaosStaff_Info">Staff imbued with Power Of Chaos! What else a mage can dream or fear of?</string>
<string name="ChaosStaff_Gender">masculine</string>

Available in multiple languages:

Lua Scripts

This entity is implemented entirely in Java. No Lua script exists for ChaosStaff.

Implementation Details

  • Parent Class: Wand (com.watabou.pixeldungeon.items.wands.Wand)
  • Sprite: items/chaosStaff.png (image index 0, changes with level)
  • Charge Mechanism: Accumulates charge when owner takes damage (ownerTakesDamage method) - charge increases by 1 per damage instance
  • Visual Progression: Image changes based on level (level / 3, max 4 different images)
  • Zap Effect: Uses ChaosCommon.doChaosMark() to mark cells with chaos energy (10 + level * 10 + charge chaos points)
  • Random Effects: 10% chance to trigger one of 5 effects on zap:
    1. Instant kill (mob.die)
    2. Convert to pet (Mob.makePet)
    3. Spawn duplicate (MobFactory.spawn at adjacent cell)
    4. Teleport (WandOfTeleportation.teleport)
    5. Heal target (PotionOfHealing.heal)
  • Boss/NPC Immunity: Random effects do not trigger on bosses or NPCs
mr/chaos_staff_item.txt · Last modified: by 127.0.0.1