summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-01-19 20:05:10 +0100
committerHaruna <haru@dotalux.com>2015-01-19 20:05:10 +0100
commit03709c136ad300be631adfd38dc36c2433bda718 (patch)
treeb690163936b99640f78141f36320fb2921556747 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parente3426296a6add20845bd08013355fd3d5f975556 (diff)
parentdef25b0d1ef77cfbd4ce09656c1cef9ec0a33269 (diff)
downloadhercules-03709c136ad300be631adfd38dc36c2433bda718.tar.gz
hercules-03709c136ad300be631adfd38dc36c2433bda718.tar.bz2
hercules-03709c136ad300be631adfd38dc36c2433bda718.tar.xz
hercules-03709c136ad300be631adfd38dc36c2433bda718.zip
Merge pull request #443 from 4144/pcext
Extract exp table validation into separate function.
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc26
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 3feaa780a..f8056c9cb 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -52802,6 +52802,32 @@ bool HP_pc_db_checkid(unsigned int class_) {
}
return retVal___;
}
+void HP_pc_validate_levels(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_pc_validate_levels_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_validate_levels_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_pc_validate_levels_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.pc.validate_levels();
+ }
+ if( HPMHooks.count.HP_pc_validate_levels_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_validate_levels_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_pc_validate_levels_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
void HP_pc_autotrade_load(void) {
int hIndex = 0;
if( HPMHooks.count.HP_pc_autotrade_load_pre ) {