mr:wand_of_magic_missile_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious 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 Assistant | mr: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/ | ||
| + | |||
| + | <code java> | ||
| + | // WandOfMagicMissile.java - Main class implementation | ||
| + | package com.watabou.pixeldungeon.items.wands; | ||
| + | |||
| + | public class WandOfMagicMissile extends SimpleWand | ||
| + | public static final String AC_DISENCHANT | ||
| + | |||
| + | { | ||
| + | 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 ); | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== JSON Configuration ==== | ||
| + | This entity is referenced in JSON configuration files: | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | |||
| + | <code json> | ||
| + | // initHeroes.json - Mage starting equipment | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | <code xml> | ||
| + | <!-- English strings (values/ | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ==== Lua Scripts ==== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ==== Entity Registration ==== | ||
| + | The WandOfMagicMissile class is registered in the item factory: | ||
| + | * RemixedDungeon/ | ||
| + | |||
| + | <code java> | ||
| + | // ItemFactory.java - Item registration | ||
| + | import com.watabou.pixeldungeon.items.wands.WandOfMagicMissile; | ||
| + | |||
| + | registerItemClass(WandOfMagicMissile.class); | ||
| + | </ | ||
| + | |||
| + | ==== Game Mechanics ==== | ||
| + | * **Type**: Wand (SimpleWand subclass) | ||
| + | * **Damage**: Random.Int(1, | ||
| + | * **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) | ||
mr/wand_of_magic_missile_item.txt · Last modified: by 127.0.0.1
