diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-19 22:31:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-19 22:31:24 +0300 |
commit | 22de9739a421f21879b96c04ca97fc5f42cc0633 (patch) | |
tree | 4c143fa38151953c2ba00a39223265002ad2360b /src/emap | |
parent | fef7b44332682465a942744f808987553daccef7 (diff) | |
download | plugin-22de9739a421f21879b96c04ca97fc5f42cc0633.tar.gz plugin-22de9739a421f21879b96c04ca97fc5f42cc0633.tar.bz2 plugin-22de9739a421f21879b96c04ca97fc5f42cc0633.tar.xz plugin-22de9739a421f21879b96c04ca97fc5f42cc0633.zip |
Dont preserv hardcoded skill in skill tree based on job.
Diffstat (limited to 'src/emap')
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/pc.c | 9 | ||||
-rw-r--r-- | src/emap/pc.h | 3 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 5e20938..9e424c7 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -237,6 +237,7 @@ HPExport void plugin_init (void) 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(pc, resetskill_job, epc_resetskill_job_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 dcd1604..c7f1eed 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -1052,3 +1052,12 @@ void epc_checkbaselevelup_sc_pre(struct map_session_data **sdPtr __attribute__ ( { hookStop(); } + + +// disable job based resets +bool epc_resetskill_job_pre(struct map_session_data** sdPtr __attribute__ ((unused)), + int *indexPtr __attribute__ ((unused))) +{ + hookStop(); + return false; +} diff --git a/src/emap/pc.h b/src/emap/pc.h index a1c8e74..f031ed8 100644 --- a/src/emap/pc.h +++ b/src/emap/pc.h @@ -136,4 +136,7 @@ void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr, void epc_checkbaselevelup_sc_pre(struct map_session_data **sdPtr); +bool epc_resetskill_job_pre(struct map_session_data** sdPtr, + int *indexPtr); + #endif // EVOL_MAP_PC |