OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Enumerations
SpellEnums.h File Reference
#include <cstdint>
#include "Utility/Flags.h"

Enumerations

enum class  SpellId {
  SPELL_NONE = 0 , SPELL_FIRE_TORCH_LIGHT = 1 , SPELL_FIRE_FIRE_BOLT = 2 , SPELL_FIRE_PROTECTION_FROM_FIRE = 3 ,
  SPELL_FIRE_FIRE_AURA = 4 , SPELL_FIRE_HASTE = 5 , SPELL_FIRE_FIREBALL = 6 , SPELL_FIRE_FIRE_SPIKE = 7 ,
  SPELL_FIRE_IMMOLATION = 8 , SPELL_FIRE_METEOR_SHOWER = 9 , SPELL_FIRE_INFERNO = 10 , SPELL_FIRE_INCINERATE = 11 ,
  SPELL_AIR_WIZARD_EYE = 12 , SPELL_AIR_FEATHER_FALL = 13 , SPELL_AIR_PROTECTION_FROM_AIR = 14 , SPELL_AIR_SPARKS = 15 ,
  SPELL_AIR_JUMP = 16 , SPELL_AIR_SHIELD = 17 , SPELL_AIR_LIGHTNING_BOLT = 18 , SPELL_AIR_INVISIBILITY = 19 ,
  SPELL_AIR_IMPLOSION = 20 , SPELL_AIR_FLY = 21 , SPELL_AIR_STARBURST = 22 , SPELL_WATER_AWAKEN = 23 ,
  SPELL_WATER_POISON_SPRAY = 24 , SPELL_WATER_PROTECTION_FROM_WATER = 25 , SPELL_WATER_ICE_BOLT = 26 , SPELL_WATER_WATER_WALK = 27 ,
  SPELL_WATER_RECHARGE_ITEM = 28 , SPELL_WATER_ACID_BURST = 29 , SPELL_WATER_ENCHANT_ITEM = 30 , SPELL_WATER_TOWN_PORTAL = 31 ,
  SPELL_WATER_ICE_BLAST = 32 , SPELL_WATER_LLOYDS_BEACON = 33 , SPELL_EARTH_STUN = 34 , SPELL_EARTH_SLOW = 35 ,
  SPELL_EARTH_PROTECTION_FROM_EARTH = 36 , SPELL_EARTH_DEADLY_SWARM = 37 , SPELL_EARTH_STONESKIN = 38 , SPELL_EARTH_BLADES = 39 ,
  SPELL_EARTH_STONE_TO_FLESH = 40 , SPELL_EARTH_ROCK_BLAST = 41 , SPELL_EARTH_TELEKINESIS = 42 , SPELL_EARTH_DEATH_BLOSSOM = 43 ,
  SPELL_EARTH_MASS_DISTORTION = 44 , SPELL_SPIRIT_DETECT_LIFE = 45 , SPELL_SPIRIT_BLESS = 46 , SPELL_SPIRIT_FATE = 47 ,
  SPELL_SPIRIT_TURN_UNDEAD = 48 , SPELL_SPIRIT_REMOVE_CURSE = 49 , SPELL_SPIRIT_PRESERVATION = 50 , SPELL_SPIRIT_HEROISM = 51 ,
  SPELL_SPIRIT_SPIRIT_LASH = 52 , SPELL_SPIRIT_RAISE_DEAD = 53 , SPELL_SPIRIT_SHARED_LIFE = 54 , SPELL_SPIRIT_RESSURECTION = 55 ,
  SPELL_MIND_REMOVE_FEAR = 56 , SPELL_MIND_MIND_BLAST = 57 , SPELL_MIND_PROTECTION_FROM_MIND = 58 , SPELL_MIND_TELEPATHY = 59 ,
  SPELL_MIND_CHARM = 60 , SPELL_MIND_CURE_PARALYSIS = 61 , SPELL_MIND_BERSERK = 62 , SPELL_MIND_MASS_FEAR = 63 ,
  SPELL_MIND_CURE_INSANITY = 64 , SPELL_MIND_PSYCHIC_SHOCK = 65 , SPELL_MIND_ENSLAVE = 66 , SPELL_BODY_CURE_WEAKNESS = 67 ,
  SPELL_BODY_FIRST_AID = 68 , SPELL_BODY_PROTECTION_FROM_BODY = 69 , SPELL_BODY_HARM = 70 , SPELL_BODY_REGENERATION = 71 ,
  SPELL_BODY_CURE_POISON = 72 , SPELL_BODY_HAMMERHANDS = 73 , SPELL_BODY_CURE_DISEASE = 74 , SPELL_BODY_PROTECTION_FROM_MAGIC = 75 ,
  SPELL_BODY_FLYING_FIST = 76 , SPELL_BODY_POWER_CURE = 77 , SPELL_LIGHT_LIGHT_BOLT = 78 , SPELL_LIGHT_DESTROY_UNDEAD = 79 ,
  SPELL_LIGHT_DISPEL_MAGIC = 80 , SPELL_LIGHT_PARALYZE = 81 , SPELL_LIGHT_SUMMON_ELEMENTAL = 82 , SPELL_LIGHT_DAY_OF_THE_GODS = 83 ,
  SPELL_LIGHT_PRISMATIC_LIGHT = 84 , SPELL_LIGHT_DAY_OF_PROTECTION = 85 , SPELL_LIGHT_HOUR_OF_POWER = 86 , SPELL_LIGHT_SUNRAY = 87 ,
  SPELL_LIGHT_DIVINE_INTERVENTION = 88 , SPELL_DARK_REANIMATE = 89 , SPELL_DARK_TOXIC_CLOUD = 90 , SPELL_DARK_VAMPIRIC_WEAPON = 91 ,
  SPELL_DARK_SHRINKING_RAY = 92 , SPELL_DARK_SHARPMETAL = 93 , SPELL_DARK_CONTROL_UNDEAD = 94 , SPELL_DARK_PAIN_REFLECTION = 95 ,
  SPELL_DARK_SACRIFICE = 96 , SPELL_DARK_DRAGON_BREATH = 97 , SPELL_DARK_ARMAGEDDON = 98 , SPELL_DARK_SOULDRINKER = 99 ,
  SPELL_BOW_ARROW = 100 , SPELL_101 = 101 , SPELL_LASER_PROJECTILE = 102 , SPELL_FIRST_REGULAR = SPELL_FIRE_TORCH_LIGHT ,
  SPELL_LAST_REGULAR = SPELL_DARK_SOULDRINKER , SPELL_FIRST_WITH_SPRITE = SPELL_FIRE_TORCH_LIGHT , SPELL_LAST_WITH_SPRITE = SPELL_LASER_PROJECTILE , BECOME_MAGIC_GUILD_MEMBER = 150 ,
  SPELL_QUEST_COMPLETED = 151 , SPELL_STAT_DECREASE = 152 , SPELL_DISEASE = 153
}
 
enum class  MagicSchool {
  MAGIC_SCHOOL_FIRE = 0 , MAGIC_SCHOOL_AIR = 1 , MAGIC_SCHOOL_WATER = 2 , MAGIC_SCHOOL_EARTH = 3 ,
  MAGIC_SCHOOL_SPIRIT = 4 , MAGIC_SCHOOL_MIND = 5 , MAGIC_SCHOOL_BODY = 6 , MAGIC_SCHOOL_LIGHT = 7 ,
  MAGIC_SCHOOL_DARK = 8 , MAGIC_SCHOOL_FIRST = MAGIC_SCHOOL_FIRE , MAGIC_SCHOOL_LAST = MAGIC_SCHOOL_DARK
}
 
enum class  SpellFlag { SPELL_CASTABLE_BY_MONSTER = 0x1 , SPELL_CASTABLE_BY_EVENT = 0x2 , SPELL_SHIFT_CLICK_CASTABLE = 0x4 , SPELL_FLAG_8 = 0x8 }
 

Enumeration Type Documentation

◆ MagicSchool

enum class MagicSchool
strong

Magic school, note that order corresponds to the enum order in SPELL_TYPE.

Enumerator
MAGIC_SCHOOL_FIRE 
MAGIC_SCHOOL_AIR 
MAGIC_SCHOOL_WATER 
MAGIC_SCHOOL_EARTH 
MAGIC_SCHOOL_SPIRIT 
MAGIC_SCHOOL_MIND 
MAGIC_SCHOOL_BODY 
MAGIC_SCHOOL_LIGHT 
MAGIC_SCHOOL_DARK 
MAGIC_SCHOOL_FIRST 
MAGIC_SCHOOL_LAST 

◆ SpellFlag

enum class SpellFlag
strong
See also
https://github.com/GrayFace/MMExtension/blob/4d6600f164315f38157591d7f0307a86594c22ef/Scripts/Structs/01%20common%20structs.lua#L1785C15-L1785C28
Enumerator
SPELL_CASTABLE_BY_MONSTER 

'M' in spells.txt. Flag seems to be properly set, but is never used by the engine.

SPELL_CASTABLE_BY_EVENT 

'E' in spells.txt. Also seems to be properly set, but is never used by the engine.

SPELL_SHIFT_CLICK_CASTABLE 

'C' in spells.txt. Makes the quick spell castable by shift+clicking an actor. E.g. heal isn't shift+click castable (because it targets a character, not an actor), while fire bolt is.

SPELL_FLAG_8 

'X' in spells.txt, only it's not set for any of the MM7 spells. MMExtension name is SpecialDamage.

◆ SpellId

enum class SpellId
strong
Enumerator
SPELL_NONE 
SPELL_FIRE_TORCH_LIGHT 
SPELL_FIRE_FIRE_BOLT 
SPELL_FIRE_PROTECTION_FROM_FIRE 
SPELL_FIRE_FIRE_AURA 
SPELL_FIRE_HASTE 
SPELL_FIRE_FIREBALL 
SPELL_FIRE_FIRE_SPIKE 
SPELL_FIRE_IMMOLATION 
SPELL_FIRE_METEOR_SHOWER 
SPELL_FIRE_INFERNO 
SPELL_FIRE_INCINERATE 
SPELL_AIR_WIZARD_EYE 
SPELL_AIR_FEATHER_FALL 
SPELL_AIR_PROTECTION_FROM_AIR 
SPELL_AIR_SPARKS 
SPELL_AIR_JUMP 
SPELL_AIR_SHIELD 
SPELL_AIR_LIGHTNING_BOLT 
SPELL_AIR_INVISIBILITY 
SPELL_AIR_IMPLOSION 
SPELL_AIR_FLY 
SPELL_AIR_STARBURST 
SPELL_WATER_AWAKEN 
SPELL_WATER_POISON_SPRAY 
SPELL_WATER_PROTECTION_FROM_WATER 
SPELL_WATER_ICE_BOLT 
SPELL_WATER_WATER_WALK 
SPELL_WATER_RECHARGE_ITEM 
SPELL_WATER_ACID_BURST 
SPELL_WATER_ENCHANT_ITEM 
SPELL_WATER_TOWN_PORTAL 
SPELL_WATER_ICE_BLAST 
SPELL_WATER_LLOYDS_BEACON 
SPELL_EARTH_STUN 
SPELL_EARTH_SLOW 
SPELL_EARTH_PROTECTION_FROM_EARTH 
SPELL_EARTH_DEADLY_SWARM 
SPELL_EARTH_STONESKIN 
SPELL_EARTH_BLADES 
SPELL_EARTH_STONE_TO_FLESH 
SPELL_EARTH_ROCK_BLAST 
SPELL_EARTH_TELEKINESIS 
SPELL_EARTH_DEATH_BLOSSOM 
SPELL_EARTH_MASS_DISTORTION 
SPELL_SPIRIT_DETECT_LIFE 
SPELL_SPIRIT_BLESS 
SPELL_SPIRIT_FATE 
SPELL_SPIRIT_TURN_UNDEAD 
SPELL_SPIRIT_REMOVE_CURSE 
SPELL_SPIRIT_PRESERVATION 
SPELL_SPIRIT_HEROISM 
SPELL_SPIRIT_SPIRIT_LASH 
SPELL_SPIRIT_RAISE_DEAD 
SPELL_SPIRIT_SHARED_LIFE 
SPELL_SPIRIT_RESSURECTION 
SPELL_MIND_REMOVE_FEAR 
SPELL_MIND_MIND_BLAST 
SPELL_MIND_PROTECTION_FROM_MIND 
SPELL_MIND_TELEPATHY 
SPELL_MIND_CHARM 
SPELL_MIND_CURE_PARALYSIS 
SPELL_MIND_BERSERK 
SPELL_MIND_MASS_FEAR 
SPELL_MIND_CURE_INSANITY 
SPELL_MIND_PSYCHIC_SHOCK 
SPELL_MIND_ENSLAVE 
SPELL_BODY_CURE_WEAKNESS 
SPELL_BODY_FIRST_AID 
SPELL_BODY_PROTECTION_FROM_BODY 
SPELL_BODY_HARM 
SPELL_BODY_REGENERATION 
SPELL_BODY_CURE_POISON 
SPELL_BODY_HAMMERHANDS 
SPELL_BODY_CURE_DISEASE 
SPELL_BODY_PROTECTION_FROM_MAGIC 
SPELL_BODY_FLYING_FIST 
SPELL_BODY_POWER_CURE 
SPELL_LIGHT_LIGHT_BOLT 
SPELL_LIGHT_DESTROY_UNDEAD 
SPELL_LIGHT_DISPEL_MAGIC 
SPELL_LIGHT_PARALYZE 
SPELL_LIGHT_SUMMON_ELEMENTAL 
SPELL_LIGHT_DAY_OF_THE_GODS 
SPELL_LIGHT_PRISMATIC_LIGHT 
SPELL_LIGHT_DAY_OF_PROTECTION 
SPELL_LIGHT_HOUR_OF_POWER 
SPELL_LIGHT_SUNRAY 
SPELL_LIGHT_DIVINE_INTERVENTION 
SPELL_DARK_REANIMATE 
SPELL_DARK_TOXIC_CLOUD 
SPELL_DARK_VAMPIRIC_WEAPON 
SPELL_DARK_SHRINKING_RAY 
SPELL_DARK_SHARPMETAL 
SPELL_DARK_CONTROL_UNDEAD 
SPELL_DARK_PAIN_REFLECTION 
SPELL_DARK_SACRIFICE 
SPELL_DARK_DRAGON_BREATH 
SPELL_DARK_ARMAGEDDON 
SPELL_DARK_SOULDRINKER 
SPELL_BOW_ARROW 
SPELL_101 
SPELL_LASER_PROJECTILE 
SPELL_FIRST_REGULAR 
SPELL_LAST_REGULAR 
SPELL_FIRST_WITH_SPRITE 
SPELL_LAST_WITH_SPRITE 
BECOME_MAGIC_GUILD_MEMBER 
SPELL_QUEST_COMPLETED 
SPELL_STAT_DECREASE 
SPELL_DISEASE