22 s_figure_toolbox_get_unkn =
24 s_figure_toolbox_add_spell =
44 for (spell_index = 1; spell_index < 799; ++spell_index)
51 if (spell_index == 799)
54 "Maximum spell limit (800) reached. Additional spells may not be registered.");
65 spell_line = s_get_spell_spell_line(_this->
SF_CGdResource, spell_id);
89 func(_this, spell_index);
93 if (spell_line != 0x5A)
void initialize_spelltype_data_hooks()
uint16_t __thiscall sf_spelltype_hook(SF_CGdSpell *_this, uint16_t spell_id, uint16_t param2, SF_CGdTargetData *source, SF_CGdTargetData *target, uint16_t param5)
void log_warning(const char *message)
int AddrOf(int offset)
returns "real" virtual address of given memory offset
uint16_t(__thiscall * get_spell_spell_line_ptr)(void *, uint16_t)
void(__thiscall * figure_toolbox_add_spell_ptr)(void *, uint16_t, uint16_t)
uint32_t(__thiscall * figure_toolbox_get_unkn_ptr)(void *, uint16_t)
void(__thiscall * handler_ptr)(SF_CGdSpell *, uint16_t)
handler_ptr get_spell_handler(const uint16_t key)
SF_CGdFigureToolbox * SF_CGdFigureToolBox
SF_GdSpell active_spell_list[800]