| OpenEnroth 9cf7432
    | 
#include "Engine/Spells/Spells.h"#include <cstring>#include <algorithm>#include <map>#include <string>#include "Engine/Party.h"#include "Engine/Graphics/Indoor.h"#include "Engine/Graphics/Overlays.h"#include "Engine/Random/Random.h"#include "Engine/Objects/Actor.h"#include "Engine/Objects/ObjectList.h"#include "Engine/Objects/SpriteObject.h"#include "Engine/SpellFxRenderer.h"#include "Engine/TurnEngine/TurnEngine.h"#include "Engine/Spells/SpellEnumFunctions.h"#include "Media/Audio/AudioPlayer.h"#include "Utility/Math/TrigLut.h"#include "Utility/String/Ascii.h"#include "Utility/String/Split.h"#include "Utility/String/Transformations.h"#include "Utility/MapAccess.h"| Functions | |
| void | eventCastSpell (SpellId uSpellID, Mastery skillMastery, int skillLevel, Vec3f from, Vec3f to) | 
| bool | IsSpellQuickCastableOnShiftClick (SpellId uSpellID) | 
| int | CalcSpellDamage (SpellId uSpellID, int spellLevel, Mastery skillMastery, int currentHp) | 
| void | armageddonProgress () | 
| Variables | |
| SpellFxRenderer * | spell_fx_renderer = EngineIocContainer::ResolveSpellFxRenderer() | 
| SpellStats * | pSpellStats = nullptr | 
| const IndexedArray< SpriteId, SPELL_FIRST_WITH_SPRITE, SPELL_LAST_WITH_SPRITE > | SpellSpriteMapping | 
| IndexedArray< SpellData, SPELL_FIRST_REGULAR, SPELL_LAST_REGULAR > | pSpellDatas | 
| IndexedArray< std::array< struct SpellBookIconPos, 12 >, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST > | pIconPos | 
| const IndexedArray< uint16_t, SPELL_FIRST_WITH_SPRITE, SPELL_LAST_WITH_SPRITE > | SpellSoundIds | 
| void armageddonProgress | ( | ) | 
| void eventCastSpell | ( | SpellId | uSpellID, | 
| Mastery | skillMastery, | ||
| int | skillLevel, | ||
| Vec3f | from, | ||
| Vec3f | to | ||
| ) | 
Function for processing spells cast from game scripts.
| bool IsSpellQuickCastableOnShiftClick | ( | SpellId | uSpellID | ) | 
| IndexedArray<std::array<struct SpellBookIconPos, 12>, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> pIconPos | 
| IndexedArray<SpellData, SPELL_FIRST_REGULAR, SPELL_LAST_REGULAR> 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
                                            |   |   |   |     |     |     |     |   |   |  |  |
 
| SpellStats* pSpellStats = nullptr | 
| SpellFxRenderer* spell_fx_renderer = EngineIocContainer::ResolveSpellFxRenderer() | 
| const IndexedArray<uint16_t, SPELL_FIRST_WITH_SPRITE, SPELL_LAST_WITH_SPRITE> SpellSoundIds | 
| const IndexedArray<SpriteId, SPELL_FIRST_WITH_SPRITE, SPELL_LAST_WITH_SPRITE> SpellSpriteMapping |