diff options
-rw-r--r-- | src/emap/homunculus.c | 6 | ||||
-rw-r--r-- | src/emap/homunculus.h | 1 | ||||
-rw-r--r-- | src/emap/init.c | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/emap/homunculus.c b/src/emap/homunculus.c index fdf0b9d..cce18cf 100644 --- a/src/emap/homunculus.c +++ b/src/emap/homunculus.c @@ -15,6 +15,12 @@ #include "emap/send.h" +enum homun_type ehomunculus_class2type_pre(int *class_ __attribute__ ((unused))) +{ + hookStop(); + return HT_REG; +} + int ehomunculus_gainexp_pre(struct homun_data **hdPtr, unsigned int *expPtr) { diff --git a/src/emap/homunculus.h b/src/emap/homunculus.h index 591e612..000b5f0 100644 --- a/src/emap/homunculus.h +++ b/src/emap/homunculus.h @@ -4,6 +4,7 @@ #ifndef EVOL_MAP_HOMUNCULUS #define EVOL_MAP_HOMUNCULUS +enum homun_type ehomunculus_class2type_pre(int *class_ __attribute__ ((unused))); int ehomunculus_gainexp_pre(struct homun_data **hdPtr, unsigned int *expPtr); diff --git a/src/emap/init.c b/src/emap/init.c index 9072d1d..9f0a9a0 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -388,6 +388,7 @@ HPExport void plugin_init (void) addHookPre(status, calc_pc_additional, estatus_calc_pc_additional_pre); addHookPre(status, calc_pc_recover_hp, estatus_calc_pc_recover_hp_pre); addHookPre(homun, gainexp, ehomunculus_gainexp_pre); + addHookPre(homun, class2type, ehomunculus_class2type_pre); // TMW2 Custom Pre Hooks //addHookPre(battle, calc_weapon_attack, ebattle_calc_weapon_attack_pre); |