summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-25 00:41:50 +0000
committerglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-25 00:41:50 +0000
commit432e794f6cda3d5bcf03db78dcc36e3c006f72d4 (patch)
tree80a1b2d79cf39b100e21769fb8f307445f5ba151
parent0c899a3bf5715095687ec30f1cae09cabee863e6 (diff)
downloadhercules-432e794f6cda3d5bcf03db78dcc36e3c006f72d4.tar.gz
hercules-432e794f6cda3d5bcf03db78dcc36e3c006f72d4.tar.bz2
hercules-432e794f6cda3d5bcf03db78dcc36e3c006f72d4.tar.xz
hercules-432e794f6cda3d5bcf03db78dcc36e3c006f72d4.zip
-Upd RK_RUNEMASTERY cooking percent, linked with upd of makerune args as requested
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16965 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/skill.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 5d38cb242..def642cd6 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -15995,8 +15995,35 @@ int skill_produce_mix (struct map_session_data *sd, int skill_id, int nameid, in
* Rune Knight
**/
case RK_RUNEMASTERY:
- make_per = 5 * (sd->itemid + pc_checkskill(sd,skill_id)) * 100;
+ {
+ int A = 100 * (51 + 2 * pc_checkskill(sd, skill_id));
+ int B = 100 * status->dex / 30 + 10 * (status->luk + sd->status.job_level);
+ int C = cap_value(sd->itemid,0,10000); //itemid depend on used rune ()
+ int D = 0;
+ switch (nameid) { //rune rank it_diff 9 craftable rune
+ case ITEMID_BERKANA:
+ D = -2000;
+ break; //Rank S
+ case ITEMID_NAUTHIZ:
+ case ITEMID_URUZ:
+ D = -1500;
+ break; //Rank A
+ case ITEMID_ISA:
+ case ITEMID_WYRD:
+ D = -1000;
+ break; //Rank B
+ case ITEMID_RAIDO:
+ case ITEMID_THURISAZ:
+ case ITEMID_HAGALAZ:
+ case ITEMID_OTHILA:
+ D = -500;
+ break; //Rank C
+ default: D = -1500;
+ break; //not specified =-15%
+ }
+ make_per = A + B + C + D;
break;
+ }
/**
* Guilotine Cross
**/