From b2d3ef23ba6b4312a3dd8a31b275b8d579c3df65 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 11 Apr 2012 04:12:42 +0000 Subject: Moved Renewal Experience Modifier out of REMODE and created its own RENEWAL_EXP setting. will update on the wiki asap. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15843 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/config/renewal.h | 7 +++++++ src/map/mob.c | 2 +- src/map/party.c | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/map/config/renewal.h b/src/map/config/renewal.h index 938c8b29a..790eab936 100644 --- a/src/map/config/renewal.h +++ b/src/map/config/renewal.h @@ -36,6 +36,13 @@ /// based on the http://irowiki.org/wiki/Drop_System#Level_Factor table #define RENEWAL_DROP +/// renewal exp rate algorithms +/// (disable by commenting the line) +/// +/// leave this line to enable renewal item exp rate algorithms +/// while enabled a special modified based on the difference between the player and monster level is applied +#define RENEWAL_EXP + /// renewal cast time variable cast requirement /// /// this is the value required for no variable cast-time with stats. diff --git a/src/map/mob.c b/src/map/mob.c index 8bd47990f..ac7bbb380 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2188,7 +2188,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) if(base_exp || job_exp) { if( md->dmglog[i].flag != MDLF_PET || battle_config.pet_attack_exp_to_master ) { -#ifdef RENEWAL +#ifdef RENEWAL_EXP if(!md->db->mexp) party_renewal_exp_mod(&base_exp,&job_exp,tmpsd[i]->status.base_level,md->level); #endif diff --git a/src/map/party.c b/src/map/party.c index 7d77affbd..b84d50c80 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -926,7 +926,7 @@ int party_renewal_drop_mod(int diff) { return 50; } #endif -#ifdef RENEWAL +#ifdef RENEWAL_EXP /** * Renewal Experience Earning Mode **/ @@ -961,7 +961,7 @@ int party_exp_share(struct party_data* p, struct block_list* src, unsigned int b { struct map_session_data* sd[MAX_PARTY]; unsigned int i, c; -#ifdef RENEWAL +#ifdef RENEWAL_EXP int src_lvl = status_get_lv(src); #endif nullpo_ret(p); @@ -991,7 +991,7 @@ int party_exp_share(struct party_data* p, struct block_list* src, unsigned int b } for (i = 0; i < c; i++) { -#ifdef RENEWAL +#ifdef RENEWAL_EXP party_renewal_exp_mod(&base_exp,&job_exp,sd[i]->status.base_level,src_lvl); #endif pc_gainexp(sd[i], src, base_exp, job_exp, false); -- cgit v1.2.3-60-g2f50