|
Spellforce-Spell-framework
|
#include "../sf_wrappers.h"#include "../../../asi/sf_asi.h"#include "sf_vanilla_fix_hook.h"#include "../sf_screens_module.h"#include <math.h>#include <vector>#include "../../registry/spell_data_registries/sf_enchant_registry.h"#include "sf_endspell_hook.h"
Go to the source code of this file.
Classes | |
| struct | D_String |
| struct | FileWrapper |
Macros | |
| #define | _USE_MATH_DEFINES |
Typedefs | |
| typedef void(__thiscall * | add_item_ptr) (ushort_list_node *_this, uint16_t *item) |
| typedef SF_String *(__thiscall * | AC95_get_figure_name_ptr) (void *AC95, SF_String *name_buffer, uint32_t figure_id) |
| typedef void(__cdecl * | GetColoredText_ptr) (SF_String *param_1, uint32_t param_2) |
| typedef void(__thiscall * | GetDescriptionText_ptr) (void *_this, uint32_t param_1, SF_String *name_buffer) |
| typedef void(__thiscall * | GetTextById_ptr) (void *_this, uint16_t text_id, SF_String *out_string) |
| typedef SF_String *(__thiscall * | ExpandSpellDescription_ptr) (AutoClass101 *_this, SF_String *out_string, SF_String *in_string, SF_CGdResourceSpell *param_3) |
| typedef SF_String *(__thiscall * | GetItemInfo_ptr) (SF_CGdResource *_this, CGdResourceWeaponData *stats, uint16_t item_id) |
| typedef uint8_t(__thiscall * | GetWeaponType_ptr) (SF_CGdResource *_this, uint16_t item_id) |
| typedef uint32_t(__thiscall * | GetDamageMultiplierPerLevel_ptr) (SF_CGdResource *_this, uint8_t level) |
| typedef uint16_t *(__thiscall * | GetWeaponEffects_ptr) (SF_CGdResource *_this, uint16_t *param_1, uint16_t item_id) |
| typedef uint32_t(__thiscall * | AC34calculateWeaponSpeed_ptr) (void *_this, uint32_t base_fight_speed, uint8_t race, uint16_t item_id, uint32_t dual_wield, uint32_t is_ranged) |
| typedef void *(__thiscall * | CGdMainGetAC34_ptr) (void *_this) |
| typedef SF_String *(__cdecl * | getSpecialDesc_ptr) (SF_String *param_1, uint32_t param_2) |
| typedef void(__stdcall * | getWeaponRangeDescription_ptr) (SF_String *param_1, uint16_t param_2, uint16_t param_3, SF_String *param_4, uint8_t param_5) |
| typedef uint32_t(__thiscall * | GetResourceSpellLine_ptr) (SF_CGdResource *_this, uint16_t spell_line_id, SF_CGdResourceSpellLine *value) |
| typedef uint16_t(__thiscall * | getUnitStringID_ptr) (SF_CGdResource *_this, uint16_t unit_id) |
| typedef bool(__thiscall * | getTextString_ptr) (SF_CGdResource *_this, uint16_t text_id, char *out_string) |
| typedef void(__thiscall * | onFigureBattleEnd_ptr) (SF_CGdFigureToolbox *_this, uint16_t figure_id) |
| typedef void(__thiscall * | createSplashScreen_ptr) (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2) |
| typedef void *(__thiscall * | AC57_Init_ptr) (void *_this, FileWrapper *fileWrapper) |
| typedef void(__thiscall * | AC57_Dispose_ptr) (void *_this) |
| typedef D_String *(__thiscall * | DStringConstructor_char_ptr) (D_String *_this, char *source) |
| typedef int(__thiscall * | FileWrapperOpen_ptr) (FileWrapper *_this, D_String *path, int param_2) |
| typedef void(__thiscall * | FileWrapperClose_ptr) (FileWrapper *_this) |
| typedef void(__thiscall * | readMapNameFromSave_ptr) (SF_CGdWorld *_this, void *AC57) |
Functions | |
| bool __thiscall | get_salvo_target_list (SF_CGdFigureJobs *_this, SF_CGdTargetData *source, SF_CGdTargetData *target, uint32_t angle, uint16_t *ranges, uint32_t target_count, ushort_list_node *output) |
| uint16_t __thiscall | get_figure_statistic_max_hp (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_max_mp (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_max_sta (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_ac (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_agi (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_cha (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_dex (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_hp (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_int (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_mp (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_sta (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_str (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_wis (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_fire_res (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_ice_res (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_mental_res (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_black_res (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_walk_spd (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_fight_spd (SF_CGdFigure *_this, uint16_t figure_id) |
| uint16_t __thiscall | get_figure_statistic_current_cast_spd (SF_CGdFigure *_this, uint16_t figure_id) |
| uint8_t __thiscall | getEffectiveRace (SF_CGdFigure *_this, uint16_t figure_id) |
| void __thiscall | figureTurnOffBattleMode (SF_CGdBattleDevelopment *_this) |
| bool __thiscall | isTitan (SF_CGdFigure *_this, uint16_t figure_id) |
| bool __thiscall | isSwarm (SF_CGdFigure *_this, uint16_t figure_id) |
| void __thiscall | decreaseUsedArmyUnitCount (SF_CGdPlayer *_this, uint16_t owner, uint8_t side) |
| uint32_t __thiscall | decreaseUnitCount (AutoClass46 *_this, uint16_t figure_id) |
| void | prepareDamageString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, CGdResourceWeaponData *weapon_data, SF_String *out_string) |
| void | prepareHPString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, SF_String *out_string) |
| void | prepareMPString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, SF_String *out_string) |
| void | prepareSpellsHeaderString (AutoClass101 *_this, SF_String *out_string) |
| void | prepareSpellString (AutoClass101 *_this, SF_String *out_string, uint16_t spell_id) |
| void | prepareEffectString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, uint16_t effect_id, SF_String *out_string) |
| SF_String *__thiscall | portrait_overlay_hook (AutoClass101 *_this, SF_String *param_1, uint16_t figure_id, uint32_t param3, uint32_t param4, uint32_t param5) |
| SF_String *__thiscall | getSpecialFigureName (SF_CGdFigureToolbox *_this, SF_String *in_string, uint16_t figure_id) |
| void | dump_offsets (CAppSession *_this) |
| void | CreateSplashScreenHelper (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2, SF_String *map_name) |
| SF_String * | getMapFromSave (CAppSession *_this, char *param_1, int campaign_type) |
| void __thiscall | CreateSplashScreen (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2) |
| void | initialize_vanilla_fix_hooks () |
| #define _USE_MATH_DEFINES |
Definition at line 5 of file sf_vanilla_fix_hook.c.
| typedef uint32_t(__thiscall * AC34calculateWeaponSpeed_ptr) (void *_this, uint32_t base_fight_speed, uint8_t race, uint16_t item_id, uint32_t dual_wield, uint32_t is_ranged) |
Definition at line 37 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * AC57_Dispose_ptr) (void *_this) |
Definition at line 1467 of file sf_vanilla_fix_hook.c.
| typedef void *(__thiscall * AC57_Init_ptr) (void *_this, FileWrapper *fileWrapper) |
Definition at line 1466 of file sf_vanilla_fix_hook.c.
| typedef SF_String *(__thiscall * AC95_get_figure_name_ptr) (void *AC95, SF_String *name_buffer, uint32_t figure_id) |
Definition at line 25 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * add_item_ptr) (ushort_list_node *_this, uint16_t *item) |
Definition at line 22 of file sf_vanilla_fix_hook.c.
| typedef void *(__thiscall * CGdMainGetAC34_ptr) (void *_this) |
Definition at line 39 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * createSplashScreen_ptr) (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2) |
Definition at line 1465 of file sf_vanilla_fix_hook.c.
Definition at line 1468 of file sf_vanilla_fix_hook.c.
| typedef SF_String *(__thiscall * ExpandSpellDescription_ptr) (AutoClass101 *_this, SF_String *out_string, SF_String *in_string, SF_CGdResourceSpell *param_3) |
Definition at line 29 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * FileWrapperClose_ptr) (FileWrapper *_this) |
Definition at line 1470 of file sf_vanilla_fix_hook.c.
| typedef int(__thiscall * FileWrapperOpen_ptr) (FileWrapper *_this, D_String *path, int param_2) |
Definition at line 1469 of file sf_vanilla_fix_hook.c.
| typedef void(__cdecl * GetColoredText_ptr) (SF_String *param_1, uint32_t param_2) |
Definition at line 26 of file sf_vanilla_fix_hook.c.
| typedef uint32_t(__thiscall * GetDamageMultiplierPerLevel_ptr) (SF_CGdResource *_this, uint8_t level) |
Definition at line 35 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * GetDescriptionText_ptr) (void *_this, uint32_t param_1, SF_String *name_buffer) |
Definition at line 27 of file sf_vanilla_fix_hook.c.
| typedef SF_String *(__thiscall * GetItemInfo_ptr) (SF_CGdResource *_this, CGdResourceWeaponData *stats, uint16_t item_id) |
Definition at line 32 of file sf_vanilla_fix_hook.c.
| typedef uint32_t(__thiscall * GetResourceSpellLine_ptr) (SF_CGdResource *_this, uint16_t spell_line_id, SF_CGdResourceSpellLine *value) |
Definition at line 45 of file sf_vanilla_fix_hook.c.
Definition at line 41 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * GetTextById_ptr) (void *_this, uint16_t text_id, SF_String *out_string) |
Definition at line 28 of file sf_vanilla_fix_hook.c.
| typedef bool(__thiscall * getTextString_ptr) (SF_CGdResource *_this, uint16_t text_id, char *out_string) |
Definition at line 49 of file sf_vanilla_fix_hook.c.
| typedef uint16_t(__thiscall * getUnitStringID_ptr) (SF_CGdResource *_this, uint16_t unit_id) |
Definition at line 48 of file sf_vanilla_fix_hook.c.
| typedef uint16_t *(__thiscall * GetWeaponEffects_ptr) (SF_CGdResource *_this, uint16_t *param_1, uint16_t item_id) |
Definition at line 36 of file sf_vanilla_fix_hook.c.
| typedef void(__stdcall * getWeaponRangeDescription_ptr) (SF_String *param_1, uint16_t param_2, uint16_t param_3, SF_String *param_4, uint8_t param_5) |
Definition at line 42 of file sf_vanilla_fix_hook.c.
| typedef uint8_t(__thiscall * GetWeaponType_ptr) (SF_CGdResource *_this, uint16_t item_id) |
Definition at line 34 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * onFigureBattleEnd_ptr) (SF_CGdFigureToolbox *_this, uint16_t figure_id) |
Definition at line 51 of file sf_vanilla_fix_hook.c.
| typedef void(__thiscall * readMapNameFromSave_ptr) (SF_CGdWorld *_this, void *AC57) |
Definition at line 1471 of file sf_vanilla_fix_hook.c.
| void __thiscall CreateSplashScreen | ( | CAppMenu * | _this, |
| CMnuContainer ** | param_1, | ||
| SF_String * | param_2 ) |
| void CreateSplashScreenHelper | ( | CAppMenu * | _this, |
| CMnuContainer ** | param_1, | ||
| SF_String * | param_2, | ||
| SF_String * | map_name ) |
Definition at line 1484 of file sf_vanilla_fix_hook.c.


| uint32_t __thiscall decreaseUnitCount | ( | AutoClass46 * | _this, |
| uint16_t | figure_id ) |
| void __thiscall decreaseUsedArmyUnitCount | ( | SF_CGdPlayer * | _this, |
| uint16_t | owner, | ||
| uint8_t | side ) |
| void dump_offsets | ( | CAppSession * | _this | ) |
| void __thiscall figureTurnOffBattleMode | ( | SF_CGdBattleDevelopment * | _this | ) |
| uint16_t __thiscall get_figure_statistic_current_ac | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_agi | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_black_res | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_cast_spd | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_cha | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_dex | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_fight_spd | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_fire_res | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_hp | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_ice_res | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_int | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_mental_res | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_mp | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_sta | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_str | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_walk_spd | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_current_wis | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_max_hp | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_max_mp | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| uint16_t __thiscall get_figure_statistic_max_sta | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| bool __thiscall get_salvo_target_list | ( | SF_CGdFigureJobs * | _this, |
| SF_CGdTargetData * | source, | ||
| SF_CGdTargetData * | target, | ||
| uint32_t | angle, | ||
| uint16_t * | ranges, | ||
| uint32_t | target_count, | ||
| ushort_list_node * | output ) |
Definition at line 73 of file sf_vanilla_fix_hook.c.
| uint8_t __thiscall getEffectiveRace | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
Definition at line 438 of file sf_vanilla_fix_hook.c.
| SF_String * getMapFromSave | ( | CAppSession * | _this, |
| char * | param_1, | ||
| int | campaign_type ) |
| SF_String *__thiscall getSpecialFigureName | ( | SF_CGdFigureToolbox * | _this, |
| SF_String * | in_string, | ||
| uint16_t | figure_id ) |
Definition at line 1366 of file sf_vanilla_fix_hook.c.


| void initialize_vanilla_fix_hooks | ( | ) |
Definition at line 1676 of file sf_vanilla_fix_hook.c.


| bool __thiscall isSwarm | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| bool __thiscall isTitan | ( | SF_CGdFigure * | _this, |
| uint16_t | figure_id ) |
| SF_String *__thiscall portrait_overlay_hook | ( | AutoClass101 * | _this, |
| SF_String * | param_1, | ||
| uint16_t | figure_id, | ||
| uint32_t | param3, | ||
| uint32_t | param4, | ||
| uint32_t | param5 ) |
| void prepareDamageString | ( | AutoClass101 * | _this, |
| SF_CGdFigure * | figures, | ||
| uint16_t | figure_id, | ||
| CGdResourceWeaponData * | weapon_data, | ||
| SF_String * | out_string ) |
| void prepareEffectString | ( | AutoClass101 * | _this, |
| SF_CGdFigure * | figures, | ||
| uint16_t | figure_id, | ||
| uint16_t | effect_id, | ||
| SF_String * | out_string ) |
Definition at line 968 of file sf_vanilla_fix_hook.c.


| void prepareHPString | ( | AutoClass101 * | _this, |
| SF_CGdFigure * | figures, | ||
| uint16_t | figure_id, | ||
| SF_String * | out_string ) |
| void prepareMPString | ( | AutoClass101 * | _this, |
| SF_CGdFigure * | figures, | ||
| uint16_t | figure_id, | ||
| SF_String * | out_string ) |
| void prepareSpellsHeaderString | ( | AutoClass101 * | _this, |
| SF_String * | out_string ) |
| void prepareSpellString | ( | AutoClass101 * | _this, |
| SF_String * | out_string, | ||
| uint16_t | spell_id ) |
| AC34calculateWeaponSpeed_ptr AC34calculateWeaponSpeed |
Definition at line 61 of file sf_vanilla_fix_hook.c.
| AC57_Dispose_ptr AC57_Dispose |
Definition at line 1479 of file sf_vanilla_fix_hook.c.
| AC57_Init_ptr AC57_Init |
Definition at line 1478 of file sf_vanilla_fix_hook.c.
| add_item_ptr add_item |
Definition at line 23 of file sf_vanilla_fix_hook.c.
| CGdMainGetAC34_ptr CGdMainGetAC34 |
Definition at line 63 of file sf_vanilla_fix_hook.c.
| createSplashScreen_ptr createSplashScreen |
Definition at line 1482 of file sf_vanilla_fix_hook.c.
| DStringConstructor_char_ptr DStringConstructor_char |
Definition at line 1477 of file sf_vanilla_fix_hook.c.
| ExpandSpellDescription_ptr ExpandSpellDescription |
Definition at line 67 of file sf_vanilla_fix_hook.c.
| FileWrapperClose_ptr FileWrapperClose |
Definition at line 1476 of file sf_vanilla_fix_hook.c.
| FileWrapperClose_ptr FileWrapperInit |
Definition at line 1480 of file sf_vanilla_fix_hook.c.
| FileWrapperOpen_ptr FileWrapperOpen |
Definition at line 1475 of file sf_vanilla_fix_hook.c.
| GetColoredText_ptr GetColoredText |
Definition at line 54 of file sf_vanilla_fix_hook.c.
| GetDamageMultiplierPerLevel_ptr GetDamageMultiplierPerLevel |
Definition at line 60 of file sf_vanilla_fix_hook.c.
| GetDescriptionText_ptr GetDescriptionText |
Definition at line 55 of file sf_vanilla_fix_hook.c.
| GetItemInfo_ptr GetItemInfo |
Definition at line 58 of file sf_vanilla_fix_hook.c.
| GetResourceSpellLine_ptr GetResourceSpellLine |
Definition at line 65 of file sf_vanilla_fix_hook.c.
| getSpecialDesc_ptr getSpecialDesc |
Definition at line 57 of file sf_vanilla_fix_hook.c.
| GetTextById_ptr GetTextById |
Definition at line 66 of file sf_vanilla_fix_hook.c.
| getTextString_ptr getTextString |
Definition at line 69 of file sf_vanilla_fix_hook.c.
| getUnitStringID_ptr getUnitStringID |
Definition at line 68 of file sf_vanilla_fix_hook.c.
| GetWeaponEffects_ptr GetWeaponEffects |
Definition at line 64 of file sf_vanilla_fix_hook.c.
| getWeaponRangeDescription_ptr getWeaponRangeDescription |
Definition at line 62 of file sf_vanilla_fix_hook.c.
| GetWeaponType_ptr GetWeaponType |
Definition at line 59 of file sf_vanilla_fix_hook.c.
| onFigureBattleEnd_ptr onFigureBattleEnd |
Definition at line 70 of file sf_vanilla_fix_hook.c.
| readMapNameFromSave_ptr readMapNameFromSave |
Definition at line 1473 of file sf_vanilla_fix_hook.c.