User Tools

Site Tools


mr:wand_of_shadowbolt_item

Wand Of Shadowbolt Item - Code References

Entity Information

  • Entity Kind: WandOfShadowbolt
  • Class: com.nyrds.pixeldungeon.items.common.WandOfShadowbolt
  • Entity Type: item

Java Classes

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

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
  • Known on Identify: Yes (isKnown() returns true)
  • 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)
  • Visual Effect: ch.getSprite().burst(0x551A8B, level / 2 + 3)
  • Projectile Type: MagicMissile.shadow()
  • Target: Single enemy (Char)
  • Damage Type: Magic damage from wand

Code References

  • Constructor: Sets imageFile to “items/wands.png” and image to 13
  • onZap(): Deals damage and creates purple particle burst effect
  • fx(): 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