diff options
author | Playtester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-04 10:47:33 +0000 |
---|---|---|
committer | Playtester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-04 10:47:33 +0000 |
commit | 3cd2ea807490256041398a3b67ac6c5a7103851e (patch) | |
tree | c9bb17a1fc736d508a1917b44f128feb009b1300 /src | |
parent | 647558b6b91166728157e6d5cfcdb14891295a66 (diff) | |
download | hercules-3cd2ea807490256041398a3b67ac6c5a7103851e.tar.gz hercules-3cd2ea807490256041398a3b67ac6c5a7103851e.tar.bz2 hercules-3cd2ea807490256041398a3b67ac6c5a7103851e.tar.xz hercules-3cd2ea807490256041398a3b67ac6c5a7103851e.zip |
* Implemented official drop rate estimation
- estimation is rounded on 2 positions after decimal point
- this will effectively raise drop rates below 50% by 0.01%
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11651 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index ed25d4198..d6e330dde 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3380,6 +3380,7 @@ static bool mob_parse_dbrow(char** str) } type = itemdb_type(db->dropitem[i].nameid); rate = atoi(str[k+1]); + if (rate < 5000) rate += 1; //Official drop bug estimate if (class_ >= 1324 && class_ <= 1363) { //Treasure box drop rates [Skotlex] rate_adjust = battle_config.item_rate_treasure; |