From 97cd487deb324fb23d9f671d0c1ed739d52d5935 Mon Sep 17 00:00:00 2001 From: "Hercules.ws" Date: Sat, 19 Apr 2014 23:30:27 +0200 Subject: HPM Hooks Update Signed-off-by: HerculesWSAPI --- src/plugins/HPMHooking/HPMHooking.Hooks.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc index 606197a6c..969cdad93 100644 --- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc @@ -50899,14 +50899,14 @@ int HP_pet_catch_process2(struct map_session_data *sd, int target_id) { } return retVal___; } -int HP_pet_get_egg(int account_id, int pet_id, int flag) { +bool HP_pet_get_egg(int account_id, short pet_class, int pet_id) { int hIndex = 0; - int retVal___ = 0; + bool retVal___ = false; if( HPMHooks.count.HP_pet_get_egg_pre ) { - int (*preHookFunc) (int *account_id, int *pet_id, int *flag); + bool (*preHookFunc) (int *account_id, short *pet_class, int *pet_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_get_egg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_get_egg_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, &pet_id, &flag); + retVal___ = preHookFunc(&account_id, &pet_class, &pet_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50914,13 +50914,13 @@ int HP_pet_get_egg(int account_id, int pet_id, int flag) { } } { - retVal___ = HPMHooks.source.pet.get_egg(account_id, pet_id, flag); + retVal___ = HPMHooks.source.pet.get_egg(account_id, pet_class, pet_id); } if( HPMHooks.count.HP_pet_get_egg_post ) { - int (*postHookFunc) (int retVal___, int *account_id, int *pet_id, int *flag); + bool (*postHookFunc) (bool retVal___, int *account_id, short *pet_class, int *pet_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_get_egg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_get_egg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &pet_id, &flag); + retVal___ = postHookFunc(retVal___, &account_id, &pet_class, &pet_id); } } return retVal___; -- cgit v1.2.3-60-g2f50