summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-04-14 16:09:19 +0000
committerPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-04-14 16:09:19 +0000
commit446b24910597339d03cbf2d0686213236063bfcd (patch)
tree7a3f652a3adcd0c00e7461986f28313267300d90
parent0054ae737552023d87621aac0ffe08246549cf22 (diff)
downloadhercules-446b24910597339d03cbf2d0686213236063bfcd.tar.gz
hercules-446b24910597339d03cbf2d0686213236063bfcd.tar.bz2
hercules-446b24910597339d03cbf2d0686213236063bfcd.tar.xz
hercules-446b24910597339d03cbf2d0686213236063bfcd.zip
* Cooking success chance is now affected by DEX and LUK
- "cooking exp" still needs to be implemented - also fixed a small issue when whispering to someone in autotrade git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13671 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt4
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/skill.c4
3 files changed, 8 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index cb618543b..a579fc8cd 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,10 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2009/04/14
+ * Cooking success chance is now affected by DEX and LUK [Playtester]
+ - "cooking exp" still needs to be implemented
+ - also fixed a small issue when whispering to someone in autotrade
2009/04/01
* Removed online_check config options. (always active now) [FlavioJS]
* Clarified char_maintenance config option.
diff --git a/src/map/clif.c b/src/map/clif.c
index 8998ba806..61db7f26e 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8766,7 +8766,7 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
{
char output[256];
sprintf(output, "%s is in autotrade mode and cannot receive whispered messages.", dstsd->status.name);
- clif_wis_message(fd, sd->status.name, output, strlen(output) + 1);
+ clif_wis_message(fd, wisp_server_name, output, strlen(output) + 1);
return;
}
diff --git a/src/map/skill.c b/src/map/skill.c
index b56e67568..ac6bf6957 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -10607,7 +10607,9 @@ int skill_produce_mix (struct map_session_data *sd, int skill_id, int nameid, in
make_per = 10000; //100% Success
else
make_per = 1200*(sd->menuskill_val-10) //12% chance per set level.
- + 7000 - 700*(skill_produce_db[idx].itemlv-10); //70% - 7% per dish 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)
break;
}
make_per = 5000;