====== Zap Effects ====== **Zap Effects** are visual effects used in Remixed Pixel Dungeon when ranged attacks or spells are cast between two points. ==== Description ==== Zap Effects are visual lines or beams that connect a caster or attacker to their target, providing visual feedback when ranged abilities are used. Different types of zap effects are used for different types of attacks and spells. ==== Types of Zap Effects ==== * **Arrow** - Used for ranged weapon attacks * **Wand** - Generic effect for most wand types * **Lightning** - Used for lightning-based wands and spells * **Kunai** - Used specifically for the [[en:rpd:kunai_throw_spell|Kunai Throw]] spell * **Shuriken** - Used for shuriken and other throwing weapons * **Magic Missile** - Used for magic missile effects * **Fire** - Used for fire-based weapons and spells * **Frost** - Used for frost-based weapons and spells * **Teleportation** - Used for blink and teleportation effects ==== Implementation ==== * Base implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/effects/ZapGlow.java|ZapGlow.java]] * Effect definition: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/platform/specific/Implementations.java#L34-L69|Implementations.java]] * Usage in spells: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/KunaiThrow.lua#L32|RPD.zapEffect()]] * RPD API: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/Utils/RpdScriptUtils.java|RpdScriptUtils.java]] ==== Related Mechanics ==== * [[en:rpd:spells|Spells]] - Abilities that use zap effects * [[en:rpd:wands|Wands]] - Items that use zap effects * [[en:rpd:ranged_combat|Ranged Combat]] - General ranged attack mechanics * [[en:rpd:effects|Visual Effects]] - Other visual effects in the game {{tag> rpd mechanics effects visuals }}