12 log_info(
"first block refresh handler called");
16 uint16_t target_entity_index =
19 target_entity_index, spell_line);
23 uint16_t spell_index_of_type =
25 target_entity_index, spell_line,
27 if (spell_index_of_type)
41 uint16_t target_entity_index =
44 target_entity_index, spell_line);
48 uint16_t spell_index_of_type =
50 target_entity_index, spell_line,
52 if (spell_index_of_type)
75 uint16_t target_entity_index =
78 target_entity_index, spell_line);
82 uint16_t spell_index_of_type =
84 target_entity_index, spell_line,
86 if (spell_index_of_type)
106 uint16_t spell_index)
109 uint16_t target_entity_index =
112 target_entity_index, spell_line);
116 uint16_t spell_index_of_type =
118 target_entity_index, spell_line,
120 if (spell_index_of_type)
142 uint16_t target_entity_index =
145 target_entity_index, spell_line);
149 uint16_t spell_index_of_type =
151 target_entity_index, spell_line,
153 if (spell_index_of_type)
173 uint16_t spell_index)
176 uint16_t target_entity_index =
179 target_entity_index, spell_line);
183 uint16_t spell_index_of_type =
185 target_entity_index, spell_line,
187 if (spell_index_of_type)
195 target_entity_index, bonus);
205 uint16_t spell_index)
208 uint16_t target_entity_index =
211 target_entity_index, spell_line);
215 uint16_t spell_index_of_type =
217 target_entity_index, spell_line,
219 if (spell_index_of_type)
227 target_entity_index, bonus);
237 uint16_t spell_index)
240 uint16_t target_entity_index =
243 target_entity_index, spell_line);
247 uint16_t spell_index_of_type =
249 target_entity_index, spell_line,
251 if (spell_index_of_type)
259 target_entity_index, bonus);
268 uint16_t spell_index)
271 uint16_t target_entity_index =
274 target_entity_index, spell_line);
278 uint16_t spell_index_of_type =
280 target_entity_index, spell_line,
282 if (spell_index_of_type)
291 target_entity_index);
296 target_entity_index);
308 uint16_t spell_index)
311 uint16_t target_entity_index =
314 target_entity_index, spell_line);
318 uint16_t spell_index_of_type =
320 target_entity_index, spell_line,
322 if (spell_index_of_type)
330 uint16_t max_health =
332 target_entity_index);
337 target_entity_index);
349 uint16_t spell_index)
352 uint16_t target_entity_index =
355 target_entity_index, spell_line);
359 uint16_t spell_index_of_type =
361 target_entity_index, spell_line,
363 if (spell_index_of_type)
382 uint16_t spell_index)
385 uint16_t target_entity_index =
388 target_entity_index, spell_line);
392 uint16_t spell_index_of_type =
394 target_entity_index, spell_line,
396 if (spell_index_of_type)
415 uint16_t spell_index)
418 uint16_t target_entity_index =
421 target_entity_index, spell_line);
425 uint16_t spell_index_of_type =
427 target_entity_index, spell_line,
429 if (spell_index_of_type)
436 target_entity_index, bonus);
445 uint16_t spell_index)
448 uint16_t target_entity_index =
451 target_entity_index, spell_line);
455 uint16_t spell_index_of_type =
457 target_entity_index, spell_line,
459 if (spell_index_of_type)
463 uint16_t max_health =
465 target_entity_index);
469 target_entity_index, bonus);
471 target_entity_index);
482 uint16_t spell_index)
485 uint16_t target_entity_index =
488 target_entity_index, spell_line);
492 uint16_t spell_index_of_type =
494 target_entity_index, spell_line,
496 if (spell_index_of_type)
515 uint16_t spell_index)
518 uint16_t target_entity_index =
521 target_entity_index, spell_line);
525 uint16_t spell_index_of_type =
527 target_entity_index, spell_line,
529 if (spell_index_of_type)
548 uint16_t spell_index)
551 uint16_t target_entity_index =
554 target_entity_index, spell_line);
558 uint16_t spell_index_of_type =
560 target_entity_index, spell_line,
562 if (spell_index_of_type)
571 target_entity_index);
575 target_entity_index, bonus);
579 target_entity_index, bonus);
581 target_entity_index);
592 uint16_t spell_index)
595 uint16_t target_entity_index =
598 target_entity_index, spell_line);
602 uint16_t spell_index_of_type =
604 target_entity_index, spell_line,
606 if (spell_index_of_type)
626 uint16_t spell_index)
629 uint16_t target_entity_index =
632 target_entity_index, spell_line);
636 uint16_t spell_index_of_type =
638 target_entity_index, spell_line,
640 if (spell_index_of_type)
660 uint16_t spell_index)
663 uint16_t target_entity_index =
666 target_entity_index, spell_line);
670 uint16_t spell_index_of_type =
672 target_entity_index, spell_line,
674 if (spell_index_of_type)
695 uint16_t spell_index)
698 uint16_t target_entity_index =
701 target_entity_index, spell_line);
705 uint16_t spell_index_of_type =
707 target_entity_index, spell_line,
709 if (spell_index_of_type)
730 uint16_t spell_index)
733 uint16_t target_entity_index =
736 target_entity_index, spell_line);
740 uint16_t spell_index_of_type =
742 target_entity_index, spell_line,
744 if (spell_index_of_type)
750 uint16_t stat_value =
752 resistance_fire.base_val;
753 int8_t recalc_value = stat_value - ((bonus * stat_value) / 100);
762 recalc_value = stat_value - ((bonus * stat_value) / 100);
770 recalc_value = stat_value - ((bonus * stat_value) / 100);
778 recalc_value = stat_value - ((bonus * stat_value) / 100);
788 recalc_value = stat_value - ((bonus * stat_value) / 100);
797 recalc_value = stat_value - ((bonus * stat_value) / 100);
805 recalc_value = stat_value - ((bonus * stat_value) / 100);
814 resistance_black.base_val;
815 recalc_value = stat_value - ((bonus * stat_value) / 100);
824 recalc_value = stat_value - ((bonus * stat_value) / 100);
832 recalc_value = stat_value - ((bonus * stat_value) / 100);
840 recalc_value = stat_value - ((bonus * stat_value) / 100);
849 resistance_mental.base_val;
850 recalc_value = stat_value - ((bonus * stat_value) / 100);
859 recalc_value = stat_value - ((bonus * stat_value) / 100);
867 recalc_value = stat_value - ((bonus * stat_value) / 100);
879 uint16_t spell_index)
882 uint16_t target_entity_index =
885 target_entity_index, spell_line);
889 uint16_t spell_index_of_type =
891 target_entity_index, spell_line,
893 if (spell_index_of_type)
900 target_entity_index, bonus);
904 target_entity_index, bonus);
908 target_entity_index, bonus);
912 target_entity_index, bonus);
921 uint16_t spell_index)
933 uint16_t target_entity_index =
939 if (spell_line_id == 0x94)
941 spell_line_id = 0x98;
945 spell_line_id = 0x94;
950 target_entity_index, spell_line_id);
957 spell_line_id, spell_index);
970 uint16_t spell_index)
981 uint16_t target_entity_index =
987 if (spell_line_id == 0x96)
989 spell_line_id = 0x9a;
993 spell_line_id = 0x96;
998 target_entity_index, spell_line_id);
1004 target_entity_index,
1005 spell_line_id, spell_index);
1018 uint16_t spell_index)
1030 uint16_t target_entity_index =
1036 if (spell_line_id == 0x97)
1038 spell_line_id = 0x9b;
1042 spell_line_id = 0x97;
1047 target_entity_index, spell_line_id);
1053 target_entity_index,
1054 spell_line_id, spell_index);
1067 uint16_t spell_index)
1069 uint16_t remove_id = spell_index;
1078 uint16_t target_entity_index =
1081 bool does_figure_have_spell_on_it =
1085 if (does_figure_have_spell_on_it == 0)
1090 target_entity_index,
1091 spell_line_id, spell_index);
1099 uint16_t spell_index)
1101 log_info(
"Domination Spell Refresh Handler Called");
1111 uint16_t target_entity_index =
1117 std::list<uint16_t> domination_spell_ids;
1122 domination_spell_ids.push_back(spell->spell_id);
1128 bool hasDominationSpell =
false;
1129 for (uint16_t spell_id : domination_spell_ids)
1132 target_entity_index, spell_id) == 0)
1135 target_entity_index, spell_id,
1138 hasDominationSpell =
true;
1143 return hasDominationSpell ? 0 : 1;
1148 log_info(
"case 0xda block refresh handler called");
SpellFunctions * spellAPI
FigureFunctions * figureAPI
ToolboxFunctions * toolboxAPI
void log_info(const char *message)
@ SPELL_STAT_MUL_MODIFIER2
@ SPELL_STAT_MUL_MODIFIER4
@ SPELL_STAT_MUL_MODIFIER3
@ SPELL_STAT_MUL_MODIFIER
std::list< SFSpell * > g_internal_spell_list
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)
SF_CGdFigure * SF_CGdFigure
SF_CGdFigureToolbox * SF_CGdFigureToolBox
SF_GdSpell active_spell_list[800]
getResourceSpellData_ptr getResourceSpellData
setEffectDone_ptr setEffectDone
Stops a spell effect handler for a given spell.
getXData_ptr getXData
Retrieves the XData value for a specific spell.
removeDLLNode_ptr removeDLLNode
Used to remove a spell from the list of active spells over the target.