====== Elemental Affinity ====== **Elemental Affinity** is one of the [[rpd:spell_affinities|spell affinities]] available in Remixed Dungeon. Characters with Elemental Affinity gain special benefits when using elemental spells. ==== Description ==== Elemental Affinity allows heroes to use spells related to the elements more effectively. Heroes with this affinity can cast elemental spells with enhanced effects or reduced costs. ==== Heroes With Elemental Affinity ==== * [[rpd:mage_class|Mage]] - The primary elemental spell user in the game * Certain other classes may gain access to elemental spells through subclass abilities ==== Associated Spells ==== * [[rpd:ignite_spell|Ignite]] - Creates a fire blob at the targeted location (Java implementation) * [[rpd:freeze_globe_spell|Freeze Globe]] - Freezes and slows enemies (Java implementation) * [[rpd:wind_gust_spell|Wind Gust]] - Pushes enemies and deals damage (Java implementation) * [[rpd:root_spell_spell|Root]] - Roots enemies in place with earth magic (Java implementation) ==== Mechanics ==== Heroes with Elemental Affinity benefit from: * Reduced mana costs for elemental spells * Enhanced spell effects * Better synergies with elemental-based items and equipment ==== Spell Affinity System ==== This is part of the [[rpd:spell_affinities|Spell Affinities]] system that allows heroes to specialize in different types of magic. Each hero class has a primary affinity that determines which spells they can effectively use. ==== Technical Details ==== * Implemented in: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/hero/HeroClass.java|HeroClass.java]] * Configuration: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/hero/initHeroes.json#L40-L43|initHeroes.json]] * Spell definitions: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/SpellHelper.java#L14|SpellHelper.java]] * String resources: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L5000-L5010|Elemental affinity strings]] ==== See Also ==== * [[rpd:spell_affinities|Spell Affinities]] * [[rpd:spells|Spells]] * [[rpd:magic|Magic System]] * [[rpd:mage_class|Mage Class]] {{tag> rpd magic affinities }}