diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-22 20:36:17 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-22 20:36:17 +0000 |
commit | c4d44be7aab68d00388bcdae85cc73e730635b87 (patch) | |
tree | 99a1578413cad737f01ce11ec80e2f9b4b3dbab3 /src/map | |
parent | 082687fc204c7b40bf676ad710c2488048571b73 (diff) | |
download | hercules-c4d44be7aab68d00388bcdae85cc73e730635b87.tar.gz hercules-c4d44be7aab68d00388bcdae85cc73e730635b87.tar.bz2 hercules-c4d44be7aab68d00388bcdae85cc73e730635b87.tar.xz hercules-c4d44be7aab68d00388bcdae85cc73e730635b87.zip |
Fixed bugreport:6464 renewal drop rate can no longer make items "drop" at 0.00% (0.01% cap now enforced)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16688 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mob.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 6266f3042..c56eca2eb 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2387,8 +2387,11 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) if (sd && sd->sc.data[SC_ITEMBOOST]) // now rig the drop rate to never be over 90% unless it is originally >90%. drop_rate = max(drop_rate,cap_value((int)(0.5+drop_rate*(sd->sc.data[SC_ITEMBOOST]->val1)/100.),0,9000)); #ifdef RENEWAL_DROP - if(drop_modifier != 100 && !md->db->mexp) + if(drop_modifier != 100 && !md->db->mexp) { drop_rate = drop_rate * drop_modifier / 100; + if( drop_rate < 1 ) + drop_rate = 1; + } #endif // attempt to drop the item if (rnd() % 10000 >= drop_rate) |