12static std::map<uint16_t, refresh_handler_ptr> s_spellrefresh_handler_map;
16 auto check = s_spellrefresh_handler_map.find(spell_line_id);
17 if (check != s_spellrefresh_handler_map.end())
19 log_debug(
DEBUG_HIGH,
"%s (v%s) has replaced an Spell Refresh Handler [%d] (Was this on purpose?)",
22 s_spellrefresh_handler_map[spell_line_id] = handler;
27 auto it = s_spellrefresh_handler_map.find(spell_line_id);
28 if (it == s_spellrefresh_handler_map.end())
30 log_debug(
DEBUG_HIGH,
"Unknown Spell Line ID [%d] for Spell Refresh Handler", spell_line_id);
39 int firstblock_cases[] = {
67 int vanilla_domination_cases[] = {0x2e, 0x6c, 0x78, 0x7a, 0xc5, 0xed};
69 for (uint32_t i = 0; i <
sizeof(firstblock_cases) /
sizeof(firstblock_cases[0]); i++)
112 for (uint32_t i = 0; i <
sizeof(vanilla_domination_cases) /
sizeof(vanilla_domination_cases[0]); i++)
void log_debug(DebugLevel level, const char *format,...)
int __thiscall endurance_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall case_da_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall domination_spell_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall black_almightness_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall enlightenment_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall dexterity_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall mutation_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall fast_fighting_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall quickness_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall flexibility_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall melt_resistance_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall inflexibility_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall warcry_berserk_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall first_block_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall slowness_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall strength_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall suffocation_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall charisma_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall endurance_durability_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall brilliance_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall eternity_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall white_almightness_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall chill_resistance_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall patronize_shelter_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall weaken_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall slow_fighting_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall decay_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall pestilence_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
int __thiscall inablility_refresh_handler(SF_CGdSpell *_this, uint16_t spell_index)
void register_vanilla_spell_refresh_handlers()
void registerSpellRefreshHandler(uint16_t spell_line_id, refresh_handler_ptr handler)
refresh_handler_ptr get_spell_refresh(uint16_t spell_line_id)
int(__thiscall * refresh_handler_ptr)(SF_CGdSpell *, uint16_t)