summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-19 21:46:37 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-19 21:46:37 +0300
commitfef7b44332682465a942744f808987553daccef7 (patch)
tree0ba7153d4a5b869be29f5ceed7a08c77c8b8b754
parent22558593526a482107fb18a35ac347ad646594c0 (diff)
downloadevol-hercules-fef7b44332682465a942744f808987553daccef7.tar.gz
evol-hercules-fef7b44332682465a942744f808987553daccef7.tar.bz2
evol-hercules-fef7b44332682465a942744f808987553daccef7.tar.xz
evol-hercules-fef7b44332682465a942744f808987553daccef7.zip
Dont add hard coded sc effects after levelup.
-rw-r--r--src/emap/init.c1
-rw-r--r--src/emap/pc.c5
-rw-r--r--src/emap/pc.h2
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