summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-07 03:36:14 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-07 03:36:14 +0000
commite08ebfb66b255385436786db6e95cf9089db25d2 (patch)
tree894241162d630c61618ceb3b7cc83783564d1025 /src/map/skill.c
parentb4ae63a63186b89d9b4012b1bc4e802ca37cb74e (diff)
downloadhercules-e08ebfb66b255385436786db6e95cf9089db25d2.tar.gz
hercules-e08ebfb66b255385436786db6e95cf9089db25d2.tar.bz2
hercules-e08ebfb66b255385436786db6e95cf9089db25d2.tar.xz
hercules-e08ebfb66b255385436786db6e95cf9089db25d2.zip
Implemented "cooking exp" that increases the success chance of cooking by 0.05% per try and the max bonus is 20%.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13854 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index df46f2212..6dc3a1bf4 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -10909,7 +10909,9 @@ int skill_produce_mix (struct map_session_data *sd, int skill_id, int nameid, in
make_per = 1200*(sd->menuskill_val-10) //12% chance per set level.
+ 1000 - 500*(skill_produce_db[idx].itemlv-10) //10% - 5% per dish level
+ 20*status->dex + 10*status->luk //0.2% per DEX, 0.1% per LUK
- + 1000; //TODO: Replace with MIN(5*COOKINGATTEMPTS;2000)
+ + 5*sd->cooking_attempt; //+0.05% per try
+ if( sd->cooking_attempt < 400 )
+ pc_setglobalreg(sd, "COOKING_ATTEMPT", sd->cooking_attempt+1);
break;
}
make_per = 5000;