summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-03 22:49:11 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-03 22:49:11 +0000
commit9f78557c7742eeb630ba5ae7b6e72d8c56a5b5b1 (patch)
treeb0dbd43762e81aaf914231e200741eddf24a9851 /src/map/mob.c
parent9aff15a57af029d3ec66fa9a038cdb4ba265ce3e (diff)
downloadhercules-9f78557c7742eeb630ba5ae7b6e72d8c56a5b5b1.tar.gz
hercules-9f78557c7742eeb630ba5ae7b6e72d8c56a5b5b1.tar.bz2
hercules-9f78557c7742eeb630ba5ae7b6e72d8c56a5b5b1.tar.xz
hercules-9f78557c7742eeb630ba5ae7b6e72d8c56a5b5b1.zip
* Added the code for Field Manual (SC_BONUSEXP) and Bubble Gum (SC_BONUSDROP)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11351 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 8f45a1fc1..d83229af1 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2017,6 +2017,8 @@ 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)