====== Wand Of Avalanche Item - Code References ====== ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/WandOfAvalanche.java|WandOfAvalanche.java]] - Main wand implementation * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/SimpleWand.java|SimpleWand.java]] - Parent class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/Wand.java|Wand.java]] - Base wand class (contains WandOfAvalanche in wand array) * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java|ItemFactory.java]] - Item registration (line 318) * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/npcs/WandMaker.java|WandMaker.java]] - NPC that can give this wand (line 110) ===== JSON Configuration ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json|Treasury.json]] - Treasure room spawn configuration (weight: 5) * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json|SpidersTreasury.json]] - Spider treasury spawn configuration (weight: 5) ===== String Resources ===== Wand of Avalanche 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. You crushed yourself to death with your own Wand of Avalanche... ===== 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