mr:spells_overview
Table of Contents
Spells Overview - Code References
Java Classes
- SpellFactory.java - Registers all available spells
- SpellHelper.java - Spell helper with affinity and targeting constants
Spell Registration (from SpellFactory)
- Elemental Spells (AFFINITY_ELEMENTAL):
- Freeze Globe - Level 3, cost 4 mana, targets cell, applies Frost + Slow
- Ignite - Fire elemental spell
- Magic Torch - Light/utility spell
- Wind Gust - Air elemental spell
- Necromancy Spells (AFFINITY_NECROMANCY):
- Raise Dead - Summons undead
- Exhumation - Creates skeletons from corpses
- Summon Deathling - Summons deathling minion
- Rage/Combat Spells (AFFINITY_RAGE / AFFINITY_COMBAT):
- Common Utility Spells (AFFINITY_COMMON):
- Healing - Restores HP
- Magic Missile - Ranged damage
- Magic Arrow - Guided projectile
- Calm - Pacifies enemies
- Nature Spells (AFFINITY_NATURE):
- Root - Entangles enemies
- Sprout - Creates plants
- Hide in Grass - Stealth
- Shadow Spells (AFFINITY_SHADOW):
- Shadow Step - Teleportation
- Dark Sacrifice - HP for mana
- Class-Specific Spells:
- Witchcraft spells
Spell Properties
- Targeting Types: TARGET_SELF, TARGET_CELL, TARGET_CHAR, TARGET_CHAR_NOT_SELF, TARGET_ALLY, TARGET_ENEMY, TARGET_NONE
- Levels: 1-3 (higher level = more powerful/costly)
- Cost: Mana cost to cast
- Image ID: Sprite index in spell icons atlas
Related mr Entities
- Spell System - Overall spell system architecture
- Spell Affinity - Magic affinity types
- Elemental Magic - Elemental affinity details
- Necromancy Magic - Necromancy affinity details
GitHub Links
mr/spells_overview.txt · Last modified: by 127.0.0.1
