summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
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 ) {