User Tools

Site Tools


mr:elemental_magic

Elemental Magic - Code References

Java Classes

Spell Affinity Constants

  • AFFINITY_ELEMENTAL: “Elemental” - Used by spells like Freeze Globe, Ignite, Magic Torch, Wind Gust
  • AFFINITY_NECROMANCY: “Necromancy” - Used by necromancy spells
  • AFFINITY_RAGE: “Rage” - Used by rage/berserker spells
  • AFFINITY_DEMONOLOGY: “Demolonogy” (typo in code) - Used by demonology spells
  • AFFINITY_NATURE: “Nature” - Used by nature/druid spells
  • AFFINITY_SHADOW: “Shadow” - Used by shadow spells
  • AFFINITY_COMMON: “Common” - Used by common utility spells

Affinity to Icon Mapping

  • Elemental → Icon ID: 6
  • Necromancy → Icon ID: 11
  • Rage → Icon ID: 12
  • Common → Icon ID: 6
  • Combat → Icon ID: 15
  • Rogue → Icon ID: 16
  • Witchcraft → Icon ID: 17
  • Huntress → Icon ID: 18
  • Elf → Icon ID: 19

Hero Class Affinities

  • Hero classes have magic affinities defined in their class definitions
  • Mage typically uses Elemental affinity
  • Warrior may use Rage or Combat affinity
  • Rogue may use Rogue affinity
  • Huntress uses Huntress affinity
  • Elf uses Elf affinity

String Resources

<string name="SpellHelper_AFFINITY_ELEMENTAL">Elemental</string>
<string name="SpellHelper_AFFINITY_NECROMANCY">Necromancy</string>
<string name="SpellHelper_AFFINITY_RAGE">Rage</string>

mr/elemental_magic.txt · Last modified: by 127.0.0.1