User Tools

Site Tools


mr:wand_of_telekinesis_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_telekinesis_item [2025/12/25 18:23] – auto lint fix Mikhaelmr:wand_of_telekinesis_item [2026/03/07 17:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Wand Of Telekinesis Item - Code References ======
 +
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/WandOfTelekinesis.java|WandOfTelekinesis.java]] - Main wand implementation
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/Wand.java|Wand.java]] - Base class for all wands
 +
 +===== Java Implementation Details =====
 +  * **Class**: `com.watabou.pixeldungeon.items.wands.WandOfTelekinesis`
 +  * **Extends**: `Wand` base class
 +  * **Properties**:
 +    * `hitChars = false` - Does not directly target characters
 +    * `hitObjects = true` - Targets objects and terrain
 +  * **Key Methods**:
 +    * `onZap(int cell, Char victim)` - Main zap effect implementation
 +    * `transport(Heap heap)` - Transports items to hero's backpack
 +    * `fx(int cell, Callback callback)` - Visual effects (MagicMissile.force)
 +    * `desc()` - Returns localized description from string resources
 +  * **Max Distance**: `effectiveLevel() + 4` cells
 +  * **Effects**:
 +    * Triggers traps along the path
 +    * Tramples high vegetation
 +    * Opens closed doors and closes open ones
 +    * Pushes back monsters
 +    * Transports heap items to hero's backpack
 +    * Activates level objects via `Presser` interface
 +
 +===== JSON Configuration =====
 +<code json>
 +{
 +  "class": "com.watabou.pixeldungeon.items.wands.WandOfTelekinesis",
 +  "dropFactor": 1
 +}
 +</code>
 +
 +This entity is implemented in Java, no JSON configuration exists outside of the basic registration entry shown above.
 +
 +===== String Resources =====
 +<code xml>
 +<string name="WandOfTelekinesis_Name">Wand of Telekinesis</string>
 +<string name="WandOfTelekinesis_Info">Waves of magic force from this wand will affect all cells on their way triggering traps, trampling high vegetation, opening closed doors and closing open ones. They also push back monsters.</string>
 +<string name="WandOfTelekinesis_YouNowHave">You have magically transported %s into your backpack</string>
 +</code>
 +
 +===== Lua Scripts =====
 +This entity is implemented in Java, no Lua script exists
 +
 +===== Related mr Entities =====
 +  * [[mr:wand_item|Wand (Base Item)]]
 +  * [[mr:ballistica_mechanic|Ballistica (Targeting System)]]
 +  * [[mr:magic_missile|Magic Missile Effects]]