summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-05 00:21:16 +0000
committershadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-05 00:21:16 +0000
commit33f5d1d9ad24c4b69f43191dedfe6cd9a9d76721 (patch)
tree6543bc15168b41d6fa9ac07bbb78cbb664ec6a20 /src/map/skill.c
parent2c41833b08912e7f05f8b6671809b106dcf5f72c (diff)
downloadhercules-33f5d1d9ad24c4b69f43191dedfe6cd9a9d76721.tar.gz
hercules-33f5d1d9ad24c4b69f43191dedfe6cd9a9d76721.tar.bz2
hercules-33f5d1d9ad24c4b69f43191dedfe6cd9a9d76721.tar.xz
hercules-33f5d1d9ad24c4b69f43191dedfe6cd9a9d76721.zip
Fixed AM_PHARMACY produce chances based on info gathered by flaviojs, aegis zone ep 11.2, of 20070629
Added missing version on my last commit on dancer.txt script (added by akrus on stable branch already) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12913 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c44
1 files changed, 25 insertions, 19 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index bcff361dc..573597b64 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -10134,35 +10134,41 @@ int skill_produce_mix (struct map_session_data *sd, int skill_id, int nameid, in
case AM_TWILIGHT1:
case AM_TWILIGHT2:
case AM_TWILIGHT3:
- make_per = pc_checkskill(sd,AM_LEARNINGPOTION)*100
+ make_per = pc_checkskill(sd,AM_LEARNINGPOTION)*50
+ pc_checkskill(sd,AM_PHARMACY)*300 + sd->status.job_level*20
- + status->int_*5 + status->dex*10+status->luk*10;
+ + (status->int_/2)*10 + status->dex*10+status->luk*10;
+ if(merc_is_hom_active(sd->hd)) {//Player got a homun
+ int skill;
+ if((skill=merc_hom_checkskill(sd->hd,HVAN_INSTRUCT)) > 0) //His homun is a vanil with instruction change
+ make_per += skill*100; //+1% bonus per level
+ }
switch(nameid){
case 501: // Red Potion
case 503: // Yellow Potion
case 504: // White Potion
- case 605: // Anodyne
- case 606: // Aloevera
- make_per += 2000;
+ make_per += (1+rand()%100)*10 + 2000;
break;
- case 505: // Blue Potion
- make_per -= 500;
- break;
- case 545: // Condensed Red Potion
- case 546: // Condensed Yellow Potion
- case 547: // Condensed White Potion
- make_per -= 1000;
- break;
- case 970: // Alcohol
- make_per += 1000;
- break;
- case 7139: // Glistening Coat
- make_per -= 1000;
+ case 970: // Alcohol
+ make_per += (1+rand()%100)*10 + 1000;
break;
case 7135: // Bottle Grenade
case 7136: // Acid Bottle
case 7137: // Plant Bottle
case 7138: // Marine Sphere Bottle
+ make_per += (1+rand()%100)*10;
+ break;
+ case 546: // Condensed Yellow Potion
+ make_per -= (1+rand()%50)*10;
+ break;
+ case 547: // Condensed White Potion
+ case 7139: // Glistening Coat
+ make_per -= (1+rand()%100)*10;
+ break;
+ //Common items, recieve no bonus or penalty, listed just because they are commonly produced
+ case 505: // Blue Potion
+ case 545: // Condensed Red Potion
+ case 605: // Anodyne
+ case 606: // Aloevera
default:
break;
}
@@ -10200,7 +10206,7 @@ int skill_produce_mix (struct map_session_data *sd, int skill_id, int nameid, in
}
// - Baby Class Penalty = 80% (from adult's chance) ----//
if (sd->class_&JOBL_BABY) //if it's a Baby Class
- make_per = (make_per * 80) / 100; //Lupus
+ make_per = (make_per * 70) / 100; //Baby penalty is 30%
if(make_per < 1) make_per = 1;