====== Magic Torch - Code References ====== {{ rpd:images:magic_torch_spell_icon.png|Magic Torch Spell }} ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/MagicTorch.java|MagicTorch.java]] - Main spell implementation class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/Spell.java|Spell.java]] - Base spell class that MagicTorch extends * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/SpellHelper.java|SpellHelper.java]] - Helper class with targeting and affinity constants ===== Implementation Details ===== * **Targeting Type**: TARGET_SELF (self-cast spell) * **Magic Affinity**: AFFINITY_COMMON (available to all hero classes) * **Spell Cost**: 1 mana point * **Buff Applied**: Light buff with duration of 80 ticks * **Visual Effect**: FlameParticle emitter at character center ===== JSON Configuration ===== * This spell is implemented in Java, no JSON configuration exists ===== String Resources ===== Magic torch A spell that produces light, to illuminate the dark levels of the dungeon. Волшебный факел Заклинание, которое производит свет, озаряющий тёмные уровни подземелья. ===== Lua Scripts ===== * This spell is implemented in Java, no Lua script exists ===== Related Files ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Light.java|Light.java]] - Buff class applied by this spell * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/effects/particles/FlameParticle.java|FlameParticle.java]] - Particle effect used for visual feedback