summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-12-06 15:29:01 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-12-06 15:29:01 +0100
commit8750ef0953362426494678b7dd6599906dbe1dca (patch)
treea275dcb10b681c3c0225a11e3c8cc11f2e5a051f /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent60497e4a95836f3a6989d1cac940fd962224172c (diff)
downloadhercules-8750ef0953362426494678b7dd6599906dbe1dca.tar.gz
hercules-8750ef0953362426494678b7dd6599906dbe1dca.tar.bz2
hercules-8750ef0953362426494678b7dd6599906dbe1dca.tar.xz
hercules-8750ef0953362426494678b7dd6599906dbe1dca.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.inc27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 0adf20592..78c9136de 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -40506,6 +40506,33 @@ struct mob_data* HP_map_id2boss(int id) {
}
return retVal___;
}
+uint32 HP_map_race_id2mask(int race) {
+ int hIndex = 0;
+ uint32 retVal___ = 0;
+ if( HPMHooks.count.HP_map_race_id2mask_pre ) {
+ uint32 (*preHookFunc) (int *race);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_map_race_id2mask_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_map_race_id2mask_pre[hIndex].func;
+ retVal___ = preHookFunc(&race);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.map.race_id2mask(race);
+ }
+ if( HPMHooks.count.HP_map_race_id2mask_post ) {
+ uint32 (*postHookFunc) (uint32 retVal___, int *race);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_map_race_id2mask_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_map_race_id2mask_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, &race);
+ }
+ }
+ return retVal___;
+}
void HP_map_reloadnpc(bool clear) {
int hIndex = 0;
if( HPMHooks.count.HP_map_reloadnpc_pre ) {