Chaos Staff Item - Code References
Java Classes
Main class:
ChaosStaff.java - Extends Wand, implements chaos staff mechanics
-
JSON Configuration
This entity does not use JSON configuration. It is implemented entirely in Java.
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 in Java, no Lua script exists.
Implementation Details
Parent Class: Wand (com.watabou.pixeldungeon.items.wands.Wand)
Image: items/chaosStaff.png (image index 0)
Charge Mechanism: Accumulates charge when owner takes damage (ownerTakesDamage method)
Visual Progression: Image changes based on level (level / 3, max 4)
Zap Effect: Uses ChaosCommon.doChaosMark() to mark cells with chaos energy
Random Effects: 10% chance to trigger one of 5 effects on zap:
Instant kill
Convert to pet
Spawn duplicate
Teleport
Heal target