OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Functions | Variables
Spells.h File Reference
#include <cstdint>
#include <array>
#include <string>
#include "Engine/Objects/ItemEnums.h"
#include "Engine/Objects/CharacterEnums.h"
#include "Engine/Objects/SpriteEnums.h"
#include "Engine/Time/Duration.h"
#include "Library/Geometry/Vec.h"
#include "Utility/IndexedArray.h"
#include "SpellEnums.h"

Classes

struct  SpellInfo
 
struct  SpellStats
 
class  SpellData
 
struct  SpellBookIconPos
 

Functions

int CalcSpellDamage (SpellId uSpellID, int spellLevel, CharacterSkillMastery skillMastery, int currentHp)
 
bool IsSpellQuickCastableOnShiftClick (SpellId uSpellID)
 
void eventCastSpell (SpellId uSpellID, CharacterSkillMastery skillMastery, int skillLevel, Vec3f from, Vec3f to)
 
void armageddonProgress ()
 

Variables

SpellStatspSpellStats
 
IndexedArray< std::array< struct SpellBookIconPos, 12 >, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LASTpIconPos
 
const IndexedArray< SpriteId, SPELL_FIRST_WITH_SPRITE, SPELL_LAST_WITH_SPRITESpellSpriteMapping
 
IndexedArray< SpellData, SPELL_FIRST_REGULAR, SPELL_LAST_REGULARpSpellDatas
 
const IndexedArray< uint16_t, SPELL_FIRST_WITH_SPRITE, SPELL_LAST_WITH_SPRITESpellSoundIds
 

Function Documentation

◆ armageddonProgress()

void armageddonProgress ( )

◆ CalcSpellDamage()

int CalcSpellDamage ( SpellId  uSpellID,
int  spellLevel,
CharacterSkillMastery  skillMastery,
int  currentHp 
)
Original binary offset:
0x43AFE3

◆ eventCastSpell()

void eventCastSpell ( SpellId  uSpellID,
CharacterSkillMastery  skillMastery,
int  skillLevel,
Vec3f  from,
Vec3f  to 
)

Function for processing spells cast from game scripts.

◆ IsSpellQuickCastableOnShiftClick()

bool IsSpellQuickCastableOnShiftClick ( SpellId  uSpellID)
Original binary offset:
0x427769

Variable Documentation

◆ pIconPos

IndexedArray<std::array<struct SpellBookIconPos, 12>, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> pIconPos
extern

◆ pSpellDatas

Description of spells.

                                            Mana Novice
                                            |   Mana Expert
                                            |   |   Mana Master
                                            |   |   |   Mana Grandmaster
                                            |   |   |   |     Recovery Novice
                                            |   |   |   |     |     Recovery Expert
                                            |   |   |   |     |     |     Recovery Master
                                            |   |   |   |     |     |     |     Recovery Grandmaster
                                            |   |   |   |     |     |     |     |   Base Damage
                                            |   |   |   |     |     |     |     |   |   Bonus Skill Damage
                                            |   |   |   |     |     |     |     |   |   |  Flags
                                            |   |   |   |     |     |     |     |   |   |  |  Required skill mastery
                                            |   |   |   |     |     |     |     |   |   |  |  |

◆ pSpellStats

SpellStats* pSpellStats
extern

◆ SpellSoundIds

const IndexedArray<uint16_t, SPELL_FIRST_WITH_SPRITE, SPELL_LAST_WITH_SPRITE> SpellSoundIds
extern

◆ SpellSpriteMapping

Original binary offset:
0x4E3ACC