User Tools

Site Tools


rpd:zapping

Differences

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

Link to this comparison view

rpd:zapping [2025/12/28 03:35] – Add zapping mechanics page to document ranged magical attacks mikerpd:zapping [2025/12/28 03:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Zapping Mechanics ======
  
 +**Zapping** refers to the ranged magical attacks performed by certain characters and creatures in Remixed Dungeon, particularly by mages and magic-using mobs.
 +
 +==== Description ====
 +Zapping is the term used to describe ranged magical attacks that can be performed by characters with certain abilities. This mechanism allows for ranged attacks without needing physical projectiles like arrows or darts.
 +
 +==== Mechanics ====
 +  * **Range:** Typically has a limited range determined by the game's line-of-sight system
 +  * **Targeting:** Uses the Ballistica system to determine line of sight and range to targets
 +  * **Accuracy:** Accuracy can be affected by various factors including the attacker's skill and the defender's evasion
 +  * **Damage:** Damage dealt may vary based on the zapping ability being used
 +
 +==== Zapping Creatures ====
 +  * **Warlock:** Uses shadow bolt zapping attacks against enemies, with a 50% chance to apply Weakness
 +  * **Other magic-using mobs:** Various other spellcasting enemies also use zapping attacks
 +
 +==== Zapping Ability ====
 +  * **Ballistica System:** Uses the Ballistica system for line-of-sight calculations to determine if a target is within range
 +  * **Visual Effects:** Often accompanied by visual effects like magic missiles or sparks
 +  * **Sound Effects:** May be accompanied by distinctive sound effects when cast
 +
 +==== Player Zapping ====
 +  * **Wands:** Players can zap enemies using wands which are a primary form of ranged magical attack
 +  * **Spells:** Some spells also function as zapping abilities
 +
 +==== Code References ====
 +  * **Zapping Interface:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/IZapper.java|IZapper interface]] - defines zapping capability
 +  * **Ballistica System:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/mechanics/Ballistica.java|Ballistica.java]] - handles line-of-sight and range calculations
 +  * **Zapping Implementation in Warlock:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Warlock.java#L75-L85|Warlock zap method]]
 +  * **Wand Zapping:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/Wand.java|Wand zap implementation]]
 +  * **Magic Missile Effect:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/effects/MagicMissile.java|MagicMissile class]] - visual effects for zapping
 +  * **Zapping Targeting:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/Actor.java#L85-L92|Actor targeting system]]
 +  * **Zapping Sound Effects:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Warlock.java#L40-L44|Warlock sound effects for zapping]]
 +  * **Machine-readable data:** [[mr:zapping_mechanic|mr:zapping_mechanic]]
 +
 +==== See Also ====
 +  * [[rpd:ballistica_mechanic|Ballistica System]]
 +  * [[rpd:wands|Wands]]
 +  * [[rpd:warlock_mob|Warlock]] - Example of a zapping mob
 +  * [[rpd:magic_missile|Magic Missile Effect]]
 +
 +{{tag> rpd mechanics magic ranged zapping ballistica}}
rpd/zapping.txt · Last modified: by 127.0.0.1