User Tools

Site Tools


mr:wand_of_teleportation_item

Wand Of Teleportation Item - Code References

Java Classes

JSON Configuration

This entity is implemented in Java, no JSON configuration exists

String Resources

<string name="WandOfTeleportation_Name">Wand of Teleportation</string>
<string name="WandOfTeleportation_Info">A blast from this wand will teleport a creature against its will to a random place on the current level.</string>
<string name="WandOfTeleportation_Info1">%1$s teleported %2$s to somewhere</string>
<string name="WandOfTeleportation_Info2">nothing happened</string>

Lua Scripts

This entity is implemented in Java, no Lua script exists

Implementation Details

  • Class: com.watabou.pixeldungeon.items.wands.WandOfTeleportation
  • Parent Class: Wand
  • Key Methods:
    1. teleport(Char ch, Char caster) - Static method to teleport a character to a random respawn cell
    2. onZap(int cell, Char ch) - Handles wand activation on target
    3. fx(int cell, Callback callback) - Visual and audio effects (cold light magic missile, SND_ZAP sound)
  • Behavior:
    1. When used on self: Teleports the caster to a random location
    2. When used on movable non-boss mobs: Teleports the target to a random respawn cell
    3. When used on bosses or immovable targets: Has no effect (“nothing happened”)
  • Visual Effects: MagicMissile.coldLight animation
  • Sound: Assets.SND_ZAP
mr/wand_of_teleportation_item.txt · Last modified: by 127.0.0.1