diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-19 22:47:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-19 22:47:58 +0300 |
commit | e9c417bf5fed6603cf562033051e1fcf999f000f (patch) | |
tree | 1d1abc1d61979e2ea2d51bb04faa03e0cec7397b | |
parent | 22de9739a421f21879b96c04ca97fc5f42cc0633 (diff) | |
download | plugin-e9c417bf5fed6603cf562033051e1fcf999f000f.tar.gz plugin-e9c417bf5fed6603cf562033051e1fcf999f000f.tar.bz2 plugin-e9c417bf5fed6603cf562033051e1fcf999f000f.tar.xz plugin-e9c417bf5fed6603cf562033051e1fcf999f000f.zip |
Allow death penalty for any jobs.
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/pc.c | 6 | ||||
-rw-r--r-- | src/emap/pc.h | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 9e424c7..f1ff8ff 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -238,6 +238,7 @@ HPExport void plugin_init (void) 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(pc, isDeathPenaltyJob, epc_isDeathPenaltyJob_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 c7f1eed..eb06237 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -1061,3 +1061,9 @@ bool epc_resetskill_job_pre(struct map_session_data** sdPtr __attribute__ ((unus hookStop(); return false; } + +bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr __attribute__ ((unused))) +{ + hookStop(); + return true; +} diff --git a/src/emap/pc.h b/src/emap/pc.h index f031ed8..6f4d144 100644 --- a/src/emap/pc.h +++ b/src/emap/pc.h @@ -139,4 +139,6 @@ void epc_checkbaselevelup_sc_pre(struct map_session_data **sdPtr); bool epc_resetskill_job_pre(struct map_session_data** sdPtr, int *indexPtr); +bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr); + #endif // EVOL_MAP_PC |