diff options
author | momacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-09 00:46:08 +0000 |
---|---|---|
committer | momacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-09 00:46:08 +0000 |
commit | af7c92046af55175cee59297e4759bd0d3913df7 (patch) | |
tree | 5cb72c4fd06b3955c56d9c6ac9c97cf157638070 /src/map/mob.c | |
parent | 25bc83e9604be9fef4f3b70ab40e698b10bd08e0 (diff) | |
download | hercules-af7c92046af55175cee59297e4759bd0d3913df7.tar.gz hercules-af7c92046af55175cee59297e4759bd0d3913df7.tar.bz2 hercules-af7c92046af55175cee59297e4759bd0d3913df7.tar.xz hercules-af7c92046af55175cee59297e4759bd0d3913df7.zip |
* Small improvement in case someone uses logarithmic drops with 1x rate, saving 19.4ms on start in that case;
* Fixed bugreport:6606 (follow up to r16881), another issue regarding to dancing skills delay.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17011 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index c112c5666..6da9d5e57 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3598,7 +3598,7 @@ static unsigned int mob_drop_adjust(int baserate, int rate_adjust, unsigned shor { double rate = baserate; - if (battle_config.logarithmic_drops && rate_adjust > 0 && baserate > 0) //Logarithmic drops equation by Ishizu-Chan + if (battle_config.logarithmic_drops && rate_adjust > 0 && rate_adjust != 100 && baserate > 0) //Logarithmic drops equation by Ishizu-Chan //Equation: Droprate(x,y) = x * (5 - log(x)) ^ (ln(y) / ln(5)) //x is the normal Droprate, y is the Modificator. rate = rate * pow((5.0 - log10(rate)), (log(rate_adjust/100.) / log(5.0))) + 0.5; |