mr:wand_of_shadowbolt_item
Table of Contents
Wand of Shadowbolt - Code References
Entity Information
- Entity Kind: WandOfShadowbolt
- Class: com.nyrds.pixeldungeon.items.common.WandOfShadowbolt
- Entity Type: item
Java Classes
- ItemFactory.java (registration at line 428: `registerItemClass(WandOfShadowbolt.class);`)
- Parent: Wand.java
Configuration Files
- JSON: This entity is implemented in Java, no JSON configuration exists
String Resources
- Name: @string/WandOfShadowbolt_Name (“wand of shadowbolt”)
- Description: @string/WandOfShadowbolt_Info (“This wand emits dark, malicious energy.”)
- English: strings_all.xml
- Russian: strings_all.xml
<string name="WandOfShadowbolt_Name">wand of shadowbolt</string> <string name="WandOfShadowbolt_Info">This wand emits dark, malicious energy.</string>
Lua Scripts
- This entity is implemented in Java, no Lua script exists
Implementation Details
- Parent Class: Wand
- Image File: items/wands.png
- Image Index: 13
- Always Identified: Yes — `isKnown()` returns `true`, so the wand never appears as an unknown wand
- Sound Effect: Assets.SND_ZAP
- Particle Effect: PurpleParticle.FACTORY (0x551A8B color)
- Particle Interval: 0.1f
Game Mechanics
- Damage Formula: `Random.Int(4 + level*2, 3 + level*3)` — i.e. the minimum is `4 + 2*level` and the maximum is `3 + 3*level`
- Visual Effect on Hit: `ch.getSprite().burst(0x551A8B, level / 2 + 3)` — purple particle burst whose count scales with wand level
- Projectile Type: MagicMissile.shadow()
- Target: Single enemy (Char)
- Damage Type: Magic damage (no physical mitigation; subject to magical resistances)
Code References
- Constructor: Sets `imageFile = “items/wands.png”` and `image = 13`
- onZap(int cell, Char ch): Deals damage and creates purple particle burst effect at the target cell
- fx(int cell, Callback callback): Creates shadow missile projectile and plays zap sound
- isKnown(): Returns `true` (wand is always identified)
- emitter(): Returns `PurpleParticle.FACTORY` for visual effect
- emitterInterval(): Returns `0.1f` for particle emission rate
- desc(): Returns string from `R.string.WandOfShadowbolt_Info`
mr/wand_of_shadowbolt_item.txt · Last modified: by 127.0.0.1
