summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HookingPoints.inc1
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc26
3 files changed, 31 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
index 9c877c56a..e9727658f 100644
--- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
@@ -4799,6 +4799,8 @@ struct {
struct HPMHookPoint *HP_status_get_total_def_post;
struct HPMHookPoint *HP_status_get_matk_pre;
struct HPMHookPoint *HP_status_get_matk_post;
+ struct HPMHookPoint *HP_status_update_matk_pre;
+ struct HPMHookPoint *HP_status_update_matk_post;
struct HPMHookPoint *HP_status_readdb_pre;
struct HPMHookPoint *HP_status_readdb_post;
struct HPMHookPoint *HP_status_initChangeTables_pre;
@@ -9832,6 +9834,8 @@ struct {
int HP_status_get_total_def_post;
int HP_status_get_matk_pre;
int HP_status_get_matk_post;
+ int HP_status_update_matk_pre;
+ int HP_status_update_matk_post;
int HP_status_readdb_pre;
int HP_status_readdb_post;
int HP_status_initChangeTables_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
index 603752447..387d91e24 100644
--- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
@@ -2436,6 +2436,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(status->get_total_mdef, HP_status_get_total_mdef) },
{ HP_POP(status->get_total_def, HP_status_get_total_def) },
{ HP_POP(status->get_matk, HP_status_get_matk) },
+ { HP_POP(status->update_matk, HP_status_update_matk) },
{ HP_POP(status->readdb, HP_status_readdb) },
{ HP_POP(status->initChangeTables, HP_status_initChangeTables) },
{ HP_POP(status->initDummyData, HP_status_initDummyData) },
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index f5e4b5cb0..96b9718dc 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -64575,6 +64575,32 @@ int HP_status_get_matk(struct block_list *src, int flag) {
}
return retVal___;
}
+void HP_status_update_matk(struct block_list *bl) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_status_update_matk_pre ) {
+ void (*preHookFunc) (struct block_list *bl);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_status_update_matk_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_status_update_matk_pre[hIndex].func;
+ preHookFunc(bl);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.status.update_matk(bl);
+ }
+ if( HPMHooks.count.HP_status_update_matk_post ) {
+ void (*postHookFunc) (struct block_list *bl);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_status_update_matk_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_status_update_matk_post[hIndex].func;
+ postHookFunc(bl);
+ }
+ }
+ return;
+}
int HP_status_readdb(void) {
int hIndex = 0;
int retVal___ = 0;