mr:wand_of_avalanche_item
Table of Contents
Wand Of Avalanche Item - Code References
Java Classes
- WandOfAvalanche.java - Main wand implementation
- SimpleWand.java - Parent class
- Wand.java - Base wand class (contains WandOfAvalanche in wand array)
- ItemFactory.java - Item registration (line 318)
- WandMaker.java - NPC that can give this wand (line 110)
JSON Configuration
- Treasury.json - Treasure room spawn configuration (weight: 5)
- SpidersTreasury.json - Spider treasury spawn configuration (weight: 5)
String Resources
<string name="WandOfAvalanche_Name">Wand of Avalanche</string> <string name="WandOfAvalanche_Info">When a discharge of this wand hits a wall (or any other solid obstacle) it causes a rock slide, damaging and stunning all creatures in the area of effect.</string> <string name="WandOfAvalanche_Info1">You crushed yourself to death with your own Wand of Avalanche...</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Implementation Details
- Package: com.watabou.pixeldungeon.items.wands
- Extends: SimpleWand
- Key Properties:
- hitChars = false (doesn't hit characters directly)
- Creates rock slide effect when hitting walls
- Damage: Random.Int(2, 6 + (size - d) * 2) where size = 1 + level/3
- Stun chance: Random.Int(2 + d) == 0, duration: Random.IntRange(2, 6)
- Area of effect: PathFinder distance map with size = 1 + level/3
- Max distance: 8 + level
- Effects:
- Speck.ROCK particle effect
- Camera shake: 3 intensity, 0.07f * (3 + (size - d)) duration
- Can stun affected creatures
- Self-damage: Can kill the hero if they hit a wall near themselves
mr/wand_of_avalanche_item.txt · Last modified: by 127.0.0.1
