From 80f384a230600345bbec9b31166dfbff44822cd3 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 3 May 2012 03:23:46 +0000 Subject: Fixed bugreport:5603 Genetic Change Material missing items were added thanks to Igniz. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16062 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 58 +++++++++++++++++++++++++++++++++++++++++---------------- src/map/skill.h | 2 +- 2 files changed, 43 insertions(+), 17 deletions(-) diff --git a/src/map/skill.c b/src/map/skill.c index d1d35c0d5..979937dc8 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -15160,24 +15160,50 @@ int skill_produce_mix (struct map_session_data *sd, int skill_id, int nameid, in // TODO: find a proper chance. make_per = (5000 + 50*status->dex + 30*status->luk); //Custom rate value. break; - case GN_CHANGEMATERIAL: + case GN_CHANGEMATERIAL: // [Igniz] switch( nameid ) { - case 1010: - qty *= 8; - break; - case 1061: - qty *= 2; - break; + case 1010: case 1056: case 1064: case 1045: + case 1025: case 964: + qty *= 8; break; + case 971: case 1059: case 968: case 1046: + case 1058: + qty *= 5; break; + case 1051: + qty *= 7; break; + case 1033: case 974: case 703: case 1009: + case 973: case 1026: case 1024: case 967: + case 1021: + qty *= 4; break; + case 1061: case 7166: case 1030: case 1019: + qty *= 2; break; + case 1003: case 2267: case 992: case 1038: + qty *= 1; break; + case 1008: case 1043: case 1049: case 1037: + qty *= 6; break; + case 970: case 958: + qty *= 9; break; + case 1041: case 1012: case 1050: + qty *= 3; break; + case 1034: + qty *= 15; break; + case 7063: case 991: + qty *= 1 + rand()%3; break; + case 1020: case 962: case 1014: + qty *= 4 + rand()%3; break; + case 1040: case 1035: + qty *= 8 + rand()%5; break; + case 1013: + qty *= 9 + rand()%5; break; + case 960: case 1053: + qty *= 6 + rand()%4; break; + case 1022: + qty *= 2 + rand()%2; break; + case 1016: + qty *= 7 + rand()%4; break; // Throwable potions - case 13275: - case 13276: - case 13277: - case 13278: - case 13279: - case 13280: - case 13281: - case 13282: - case 13283: + case 13275: case 13276: case 13277: case 13278: + case 13279: case 13280: case 13281: case 13282: + case 13283: case 999: qty *= 10; break; } diff --git a/src/map/skill.h b/src/map/skill.h index 978ece386..8a7af1509 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -13,7 +13,7 @@ struct skill_unit_group; struct status_change_entry; #define MAX_SKILL_DB MAX_SKILL -#define MAX_SKILL_PRODUCE_DB 200 +#define MAX_SKILL_PRODUCE_DB 260 #define MAX_PRODUCE_RESOURCE 12 #define MAX_SKILL_ARROW_DB 150 #define MAX_ARROW_RESOURCE 5 -- cgit v1.2.3-70-g09d2