From a69dd0853debc38b7e83e460fb94b21661dea9f8 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 28 Aug 2006 16:47:19 +0000 Subject: - Changed the produce_db format, now there's a skill-lv column right after the skill-id column to specify required skill-level to craft this item. - Modified the skill produce_db code to take into account the new skill-lv requirement. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8523 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 10 ++++++---- src/map/skill.h | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index 75283e2bb..90d996361 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -10308,7 +10308,8 @@ int skill_can_produce_mix (struct map_session_data *sd, int nameid, int trigger, return 0; } } - if( (j=skill_produce_db[i].req_skill)>0 && pc_checkskill(sd,j)<=0 ) + if((j=skill_produce_db[i].req_skill)>0 && + pc_checkskill(sd,j) < skill_produce_db[i].req_skill_lv) return 0; for(j=0;j