From fef7b44332682465a942744f808987553daccef7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Apr 2018 21:46:37 +0300 Subject: Dont add hard coded sc effects after levelup. --- src/emap/init.c | 1 + src/emap/pc.c | 5 +++++ src/emap/pc.h | 2 ++ 3 files changed, 8 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2