diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-04 20:47:35 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-04 20:47:35 +0000 |
commit | 74382866b1dc40a990f6dcc164fac8eb4d3e5a46 (patch) | |
tree | b34d333dcb98af911b0f53d75c7b6a1622ed94f4 /src/map/mob.c | |
parent | 72f668162425f86e6253d571708f9a54a776c923 (diff) | |
download | hercules-74382866b1dc40a990f6dcc164fac8eb4d3e5a46.tar.gz hercules-74382866b1dc40a990f6dcc164fac8eb4d3e5a46.tar.bz2 hercules-74382866b1dc40a990f6dcc164fac8eb4d3e5a46.tar.xz hercules-74382866b1dc40a990f6dcc164fac8eb4d3e5a46.zip |
* Added SC_EXPBOOST (Field Manual), SC_ITEMBOOST (Bubble Gum) to const.txt. Allready working.
- Added SC_LIFEINSURANCE and SC_BOSSMAPINFO to const.txt. (not implemented but i will work on it)
- Updated Field Manual and Bubble Gum in the itemdb.txt file.
- As L0ne Wolf reported to me and based on Doddler information, the Bubble Gum only do a second try of the item drop, and it don't increase the drop rates.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11356 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index da151faed..77bd8e53d 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2017,12 +2017,16 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) if (sd && battle_config.pk_mode && (int)(md->level - sd->status.base_level) >= 20) drop_rate = (int)(drop_rate*1.25); // pk_mode increase drops if 20 level difference [Valaris] - if (sd && sd->sc.data[SC_BONUSDROP].timer != -1) - drop_rate += (int)(0.5+drop_rate*sd->sc.data[SC_BONUSDROP].val1/100.); // attempt to drop the item if (rand() % 10000 >= drop_rate) - continue; + { + if (sd && sd->sc.data[SC_ITEMBOOST].timer != -1) + if (rand() % 10000 >= drop_rate) + continue; // Double try by Bubble Gum + else + continue; + } ditem = mob_setdropitem(md->db->dropitem[i].nameid, 1); |