summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-19 22:52:43 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-19 22:52:43 +0300
commitd849f17f97e7b203435ab387c356d20976651c00 (patch)
tree208c36525373cf3923cbdd430ad17f87fa1cc7ad
parente9c417bf5fed6603cf562033051e1fcf999f000f (diff)
downloadplugin-d849f17f97e7b203435ab387c356d20976651c00.tar.gz
plugin-d849f17f97e7b203435ab387c356d20976651c00.tar.bz2
plugin-d849f17f97e7b203435ab387c356d20976651c00.tar.xz
plugin-d849f17f97e7b203435ab387c356d20976651c00.zip
Load all skills independend on job types.
-rw-r--r--src/emap/init.c1
-rw-r--r--src/emap/pc.c7
-rw-r--r--src/emap/pc.h3
3 files changed, 11 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index f1ff8ff..dfd0f29 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -239,6 +239,7 @@ HPExport void plugin_init (void)
addHookPre(pc, checkbaselevelup_sc, epc_checkbaselevelup_sc_pre);
addHookPre(pc, resetskill_job, epc_resetskill_job_pre);
addHookPre(pc, isDeathPenaltyJob, epc_isDeathPenaltyJob_pre);
+ addHookPre(pc, read_skill_job_skip, epc_read_skill_job_skip_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 eb06237..5eca163 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -1067,3 +1067,10 @@ bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr __attribute__ ((unused)))
hookStop();
return true;
}
+
+bool epc_read_skill_job_skip_pre(short *skill_idPtr __attribute__ ((unused)),
+ int *job_idPtr __attribute__ ((unused)))
+{
+ hookStop();
+ return false;
+}
diff --git a/src/emap/pc.h b/src/emap/pc.h
index 6f4d144..4d227b4 100644
--- a/src/emap/pc.h
+++ b/src/emap/pc.h
@@ -141,4 +141,7 @@ bool epc_resetskill_job_pre(struct map_session_data** sdPtr,
bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr);
+bool epc_read_skill_job_skip_pre(short *skill_idPtr,
+ int *job_idPtr);
+
#endif // EVOL_MAP_PC