diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-19 21:22:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-19 21:22:19 +0300 |
commit | 22558593526a482107fb18a35ac347ad646594c0 (patch) | |
tree | 6a45c22a28c311e43846d35412aeb5e343662821 | |
parent | a3c0c9731cc4115694c5931695e67f2c73c2a3ac (diff) | |
download | plugin-22558593526a482107fb18a35ac347ad646594c0.tar.gz plugin-22558593526a482107fb18a35ac347ad646594c0.tar.bz2 plugin-22558593526a482107fb18a35ac347ad646594c0.tar.xz plugin-22558593526a482107fb18a35ac347ad646594c0.zip |
Dont add hardcoded skills into tree for some races.
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/pc.c | 7 | ||||
-rw-r--r-- | src/emap/pc.h | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 26a2d02..6ad2d72 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -235,6 +235,7 @@ HPExport void plugin_init (void) addHookPre(pc, insert_card, epc_insert_card_pre); addHookPre(pc, process_chat_message, epc_process_chat_message_pre); addHookPre(pc, calc_skilltree_clear, epc_calc_skilltree_clear_pre); + addHookPre(pc, calc_skilltree_bonus, epc_calc_skilltree_bonus_pre); addHookPre(mob, deleteslave_sub, emob_deleteslave_sub_pre); addHookPre(mob, read_db_additional_fields, emob_read_db_additional_fields_pre); addHookPre(mob, dead, emob_dead_pre); diff --git a/src/emap/pc.c b/src/emap/pc.c index ff9a49e..91d911f 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -1040,3 +1040,10 @@ void epc_calc_skilltree_clear_pre(struct map_session_data **sdPtr) } hookStop(); } + +// disable job based bonuses +void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr __attribute__ ((unused)), + int *classidxPtr __attribute__ ((unused))) +{ + hookStop(); +} diff --git a/src/emap/pc.h b/src/emap/pc.h index 8579d6f..29bc0b1 100644 --- a/src/emap/pc.h +++ b/src/emap/pc.h @@ -131,4 +131,7 @@ int epc_jobchange(struct map_session_data *sd, void epc_calc_skilltree_clear_pre(struct map_session_data **sdPtr); +void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr, + int *classidxPtr); + #endif // EVOL_MAP_PC |