diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-03 22:49:11 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-03 22:49:11 +0000 |
commit | 9f78557c7742eeb630ba5ae7b6e72d8c56a5b5b1 (patch) | |
tree | b0dbd43762e81aaf914231e200741eddf24a9851 /src/map/status.c | |
parent | 9aff15a57af029d3ec66fa9a038cdb4ba265ce3e (diff) | |
download | hercules-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/status.c')
-rw-r--r-- | src/map/status.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 9c892818f..84ce9b581 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5804,6 +5804,18 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val //Place here SCs that have no SCB_* data, no skill associated, no ICON //associated, and yet are not wrong/unknown. [Skotlex] break; + case SC_BONUSDROP: + clif_specialeffect(&sd->bl, 348, AREA); + clif_disp_onlyself(sd, "[Drop Rate Increased]", (int)strlen("[Drop Rate Increased]")); + if (val1 < 0) + val1 = 0; + break; + case SC_BONUSEXP: + clif_specialeffect(&sd->bl, 348, AREA); + clif_disp_onlyself(sd, "[Exp Rate Increased]", (int)strlen("[Exp Rate Increased]")); + if (val1 < 0) + val1 = 0; + break; default: if (calc_flag == SCB_NONE && StatusSkillChangeTable[type]==0 && @@ -6395,6 +6407,14 @@ int status_change_end( struct block_list* bl , int type,int tid ) case SC_JOINTBEAT: sc->data[type].val2 = 0; // Clear stackable ailments break; + case SC_BONUSEXP: + clif_disp_onlyself(sd, "[Exp Rate Back to Normal]", (int)strlen("[Exp Rate Back to Normal]")); + clif_specialeffect(&sd->bl, 488, AREA); + break; + case SC_BONUSDROP: + clif_disp_onlyself(sd, "[Drop Rate Back to Normal]", (int)strlen("[Drop Rate Back to Normal]")); + clif_specialeffect(&sd->bl, 488, AREA); + break; } opt_flag = 1; |