====== Shoot In Eye Spell - Code References ====== {{ rpd:images:shoot_in_eye_spell.png|Shoot In Eye Spell }} ===== Java Classes ===== This entity is implemented in Lua, no Java class exists ===== JSON Configuration ===== This entity is implemented in Lua, no JSON configuration exists ===== String Resources ===== Shoot In Eye Use your exceptional marksmanship skills to shoot the enemy right in the eye, if he has any of course. ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/ShootInEye.lua|ShootInEye.lua]] - Main spell implementation * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/CustomSpellsList.lua|CustomSpellsList.lua]] - Spell registration (Huntress spell list) * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/lib/commonClasses.lua|commonClasses.lua]] - RPD helper functions * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/lib/spell.lua|spell.lua]] - Spell base class ===== Implementation Details ===== * **Script Path**: scripts/spells/ShootInEye.lua * **Magic Affinity**: Huntress * **Targeting Type**: char_not_self (requires target selection) * **Level Requirement**: 1 * **Cast Time**: 1 turn * **Spell Cost**: 5 mana * **Effects**: * Visual: Boomerang zap effect from caster to target * Applies Blindness buff to target (duration based on caster's skill level) * Deals damage: sqrt(skillLevel) * weapon.damageRoll(caster) * Plays Wound sound effect on hit * **Dependencies**: * Requires weapon equipped to calculate damage * Uses RPD.zapEffect() for visual effect * Uses RPD.affectBuff() to apply Blindness * Uses RPD.Sfx.Wound:hit() for sound effect ===== Related mr Entities ===== * [[mr:blindness_buff|Blindness (Buff)]] * [[mr:huntress_class|Huntress (Class)]] * [[mr:spell|Spells]] * [[mr:magic_mechanic|Magic Mechanic]]