User Tools

Site Tools


mr:wand_of_magic_missile_item

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mr:wand_of_magic_missile_item [2026/03/10 03:03] – Fix wiki pages: paralytic_gas_buff and wand_of_magic_missile_item Qwen Assistantmr:wand_of_magic_missile_item [2026/03/10 03:03] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Wand Of Magic Missile Item - Code References ======
 +
 +==== Java Classes ====
 +This entity is implemented in Java:
 +  * RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/WandOfMagicMissile.java
 +
 +<code java>
 +// WandOfMagicMissile.java - Main class implementation
 +package com.watabou.pixeldungeon.items.wands;
 +
 +public class WandOfMagicMissile extends SimpleWand  {
 + public static final String AC_DISENCHANT    = "WandOfMagicMissile_ACDisenchant";
 +
 + {
 + image = ItemSpriteSheet.WAND_MAGIC_MISSILE;
 + }
 +
 + @Override
 + protected void onZap( int cell, Char ch ) {
 + if (ch != null) {
 + int level = effectiveLevel();
 + ch.damage( Random.Int( 1, 6 + level * 2 ), this );
 + }
 + }
 +}
 +</code>
 +
 +==== JSON Configuration ====
 +This entity is referenced in JSON configuration files:
 +  * RemixedDungeon/src/main/assets/hero/initHeroes.json - Starting equipment for Mage class
 +  * RemixedDungeon/src/main/assets/hero/initHeroesDebug.json - Debug starting equipment
 +  * RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json - Spawn configuration
 +  * RemixedDungeon/src/main/assets/levelsDesc/Treasury.json - Spawn configuration
 +
 +<code json>
 +// initHeroes.json - Mage starting equipment
 +{
 +    "kind": "WandOfMagicMissile",
 +    "level": 0
 +}
 +</code>
 +
 +==== String Resources ====
 +<code xml>
 +<!-- English strings (values/strings_all.xml) -->
 +<string name="WandOfMagicMissile_Name">Wand of Magic Missile</string>
 +<string name="WandOfMagicMissile_Info">This wand of common magic missile shoots bolts of pure magical energy. Right click to disenchant and transfer its energy to another wand.</string>
 +<string name="WandOfMagicMissile_Info1">Killed by your own wand...</string>
 +<string name="WandOfMagicMissile_SelectWand">Select a wand to enchant</string>
 +<string name="WandOfMagicMissile_Desinchanted">%s is disenchanted!</string>
 +<string name="WandOfMagicMissile_ACDisenchant">Disenchant</string>
 +</code>
 +
 +==== Lua Scripts ====
 +This entity is implemented in Java, no Lua script exists
 +
 +==== Entity Registration ====
 +The WandOfMagicMissile class is registered in the item factory:
 +  * RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java
 +
 +<code java>
 +// ItemFactory.java - Item registration
 +import com.watabou.pixeldungeon.items.wands.WandOfMagicMissile;
 +
 +registerItemClass(WandOfMagicMissile.class);
 +</code>
 +
 +==== Game Mechanics ====
 +  * **Type**: Wand (SimpleWand subclass)
 +  * **Damage**: Random.Int(1, 6 + level * 2) - scales with wand level
 +  * **Special Ability**: Disenchant - transfers energy to another wand
 +  * **Known Status**: Always known (isKnown() returns true)
 +  * **Image**: ItemSpriteSheet.WAND_MAGIC_MISSILE
 +
 +==== Related Entities ====
 +  * Parent class: SimpleWand
 +  * Parent class: Wand
 +  * Used by: Mage class (starting equipment)
 +  * Related item: ScrollOfUpgrade (alternative upgrade method)