summaryrefslogtreecommitdiff
path: root/src/map/pc.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/pc.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/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1c762ca44..3e6c90792 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4197,6 +4197,9 @@ static void pc_calcexp(struct map_session_data *sd, unsigned int *base_exp, unsi
(int)(status_get_lv(src) - sd->status.base_level) >= 20)
bonus += 15; // pk_mode additional exp if monster >20 levels [Valaris]
+ if (sd->sc.data[SC_BONUSEXP].timer != -1)
+ bonus += sd->sc.data[SC_BONUSEXP].val1;
+
if (!bonus)
return;