diff options
author | Hercules.ws <Hercules@efficiently.awesome> | 2016-01-03 23:11:31 +0100 |
---|---|---|
committer | HerculesWSAPI <Hercules@efficiently.awesome> | 2016-01-03 23:11:31 +0100 |
commit | 506d1b1d3ce3299fc8dfb79d420b08146e5b7aab (patch) | |
tree | 6e32ce707bc28b03ff00933816a97614eda97784 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | |
parent | 8b8007f5267a8972b0d5f087e1e2971500a60c50 (diff) | |
download | hercules-506d1b1d3ce3299fc8dfb79d420b08146e5b7aab.tar.gz hercules-506d1b1d3ce3299fc8dfb79d420b08146e5b7aab.tar.bz2 hercules-506d1b1d3ce3299fc8dfb79d420b08146e5b7aab.tar.xz hercules-506d1b1d3ce3299fc8dfb79d420b08146e5b7aab.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index eee171ee4..96956f753 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -56817,6 +56817,32 @@ void HP_pc_read_skill_tree(void) { } return; } +void HP_pc_clear_skill_tree(void) { + int hIndex = 0; + if( HPMHooks.count.HP_pc_clear_skill_tree_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_skill_tree_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pc_clear_skill_tree_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pc.clear_skill_tree(); + } + if( HPMHooks.count.HP_pc_clear_skill_tree_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_skill_tree_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pc_clear_skill_tree_post[hIndex].func; + postHookFunc(); + } + } + return; +} int HP_pc_isUseitem(struct map_session_data *sd, int n) { int hIndex = 0; int retVal___ = 0; |