diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-19 21:46:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-19 21:46:37 +0300 |
commit | fef7b44332682465a942744f808987553daccef7 (patch) | |
tree | 0ba7153d4a5b869be29f5ceed7a08c77c8b8b754 | |
parent | 22558593526a482107fb18a35ac347ad646594c0 (diff) | |
download | plugin-fef7b44332682465a942744f808987553daccef7.tar.gz plugin-fef7b44332682465a942744f808987553daccef7.tar.bz2 plugin-fef7b44332682465a942744f808987553daccef7.tar.xz plugin-fef7b44332682465a942744f808987553daccef7.zip |
Dont add hard coded sc effects after levelup.
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/pc.c | 5 | ||||
-rw-r--r-- | src/emap/pc.h | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 6ad2d72..5e20938 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -236,6 +236,7 @@ HPExport void plugin_init (void) 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(pc, checkbaselevelup_sc, epc_checkbaselevelup_sc_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 91d911f..dcd1604 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -1047,3 +1047,8 @@ void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr __attribute__ { hookStop(); } + +void epc_checkbaselevelup_sc_pre(struct map_session_data **sdPtr __attribute__ ((unused))) +{ + hookStop(); +} diff --git a/src/emap/pc.h b/src/emap/pc.h index 29bc0b1..a1c8e74 100644 --- a/src/emap/pc.h +++ b/src/emap/pc.h @@ -134,4 +134,6 @@ void epc_calc_skilltree_clear_pre(struct map_session_data **sdPtr); void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr, int *classidxPtr); +void epc_checkbaselevelup_sc_pre(struct map_session_data **sdPtr); + #endif // EVOL_MAP_PC |