summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-01 08:34:42 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-01 08:34:42 +0000
commit0ff6335bc5f38a0dfebca95853a8c2deac174807 (patch)
treeac070522e70dd5b7588cfdd98296def7a5ce2727
parentff6a7baa2a4ac1896980cadede3ed53dc091caee (diff)
downloadhercules-0ff6335bc5f38a0dfebca95853a8c2deac174807.tar.gz
hercules-0ff6335bc5f38a0dfebca95853a8c2deac174807.tar.bz2
hercules-0ff6335bc5f38a0dfebca95853a8c2deac174807.tar.xz
hercules-0ff6335bc5f38a0dfebca95853a8c2deac174807.zip
Skip woe:se treasure boxes when counting max. item droprate (followup to r13156).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13172 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ff5ee6a8e..5c8875f88 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3501,7 +3501,7 @@ static bool mob_parse_dbrow(char** str)
db->dropitem[i].p = mob_drop_adjust(rate, rate_adjust, ratemin, ratemax);
//calculate and store Max available drop chance of the item
- if (db->dropitem[i].p && (class_ < 1324 || class_ > 1363)) { //Skip treasure chests.
+ if (db->dropitem[i].p && (class_ < 1324 || class_ > 1363) && (class_ < 1938 || class_ > 1946) { //Skip treasure chests.
id = itemdb_search(db->dropitem[i].nameid);
if (id->maxchance == 10000 || (id->maxchance < db->dropitem[i].p) ) {
id->maxchance = db->dropitem[i].p; //item has bigger drop chance or sold in shops