summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <dev@herc.ws>2017-06-28 23:52:12 +0200
committerHerculesWSAPI <dev@herc.ws>2017-06-28 23:52:12 +0200
commit93b0f5d876fdb5ce9cea57ed47362899752cc48c (patch)
treea0fb6beba63f51f653ce42dd91dd89f7e7568183 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parentabe64c3982a11c9834f2e16eaaf0dc940a903fdb (diff)
downloadhercules-93b0f5d876fdb5ce9cea57ed47362899752cc48c.tar.gz
hercules-93b0f5d876fdb5ce9cea57ed47362899752cc48c.tar.bz2
hercules-93b0f5d876fdb5ce9cea57ed47362899752cc48c.tar.xz
hercules-93b0f5d876fdb5ce9cea57ed47362899752cc48c.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc43
1 files changed, 35 insertions, 8 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 970e7cd45..4bd397240 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -64195,6 +64195,33 @@ int HP_script_menu_countoptions(const char *str, int max_count, int *total) {
}
return retVal___;
}
+int HP_script_buildin_recovery_sub(struct map_session_data *sd) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if (HPMHooks.count.HP_script_buildin_recovery_sub_pre > 0) {
+ int (*preHookFunc) (struct map_session_data **sd);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_recovery_sub_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_script_buildin_recovery_sub_pre[hIndex].func;
+ retVal___ = preHookFunc(&sd);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.script.buildin_recovery_sub(sd);
+ }
+ if (HPMHooks.count.HP_script_buildin_recovery_sub_post > 0) {
+ int (*postHookFunc) (int retVal___, struct map_session_data *sd);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_recovery_sub_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_script_buildin_recovery_sub_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, sd);
+ }
+ }
+ return retVal___;
+}
int HP_script_buildin_recovery_pc_sub(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
int retVal___ = 0;
@@ -64228,15 +64255,15 @@ int HP_script_buildin_recovery_pc_sub(struct map_session_data *sd, va_list ap) {
}
return retVal___;
}
-int HP_script_buildin_recovery_sub(struct block_list *bl, va_list ap) {
+int HP_script_buildin_recovery_bl_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
int retVal___ = 0;
- if (HPMHooks.count.HP_script_buildin_recovery_sub_pre > 0) {
+ if (HPMHooks.count.HP_script_buildin_recovery_bl_sub_pre > 0) {
int (*preHookFunc) (struct block_list **bl, va_list ap);
*HPMforce_return = false;
- for (hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_recovery_sub_pre; hIndex++) {
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_recovery_bl_sub_pre; hIndex++) {
va_list ap___copy; va_copy(ap___copy, ap);
- preHookFunc = HPMHooks.list.HP_script_buildin_recovery_sub_pre[hIndex].func;
+ preHookFunc = HPMHooks.list.HP_script_buildin_recovery_bl_sub_pre[hIndex].func;
retVal___ = preHookFunc(&bl, ap___copy);
va_end(ap___copy);
}
@@ -64247,14 +64274,14 @@ int HP_script_buildin_recovery_sub(struct block_list *bl, va_list ap) {
}
{
va_list ap___copy; va_copy(ap___copy, ap);
- retVal___ = HPMHooks.source.script.buildin_recovery_sub(bl, ap___copy);
+ retVal___ = HPMHooks.source.script.buildin_recovery_bl_sub(bl, ap___copy);
va_end(ap___copy);
}
- if (HPMHooks.count.HP_script_buildin_recovery_sub_post > 0) {
+ if (HPMHooks.count.HP_script_buildin_recovery_bl_sub_post > 0) {
int (*postHookFunc) (int retVal___, struct block_list *bl, va_list ap);
- for (hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_recovery_sub_post; hIndex++) {
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_recovery_bl_sub_post; hIndex++) {
va_list ap___copy; va_copy(ap___copy, ap);
- postHookFunc = HPMHooks.list.HP_script_buildin_recovery_sub_post[hIndex].func;
+ postHookFunc = HPMHooks.list.HP_script_buildin_recovery_bl_sub_post[hIndex].func;
retVal___ = postHookFunc(retVal___, bl, ap___copy);
va_end(ap___copy);
}