summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2016-06-26 01:37:14 +0200
committerhemagx <hemagx2@gmail.com>2016-06-29 03:23:33 +0200
commitff75470f7085c3ca23a9b16be43881b6bc953345 (patch)
tree533625a9854c79785b80073f982c9b092b0e2410 /src/map/mob.c
parentc1d86fb39a1567edb3c7c5c174b7aeafb4cc9266 (diff)
downloadhercules-ff75470f7085c3ca23a9b16be43881b6bc953345.tar.gz
hercules-ff75470f7085c3ca23a9b16be43881b6bc953345.tar.bz2
hercules-ff75470f7085c3ca23a9b16be43881b6bc953345.tar.xz
hercules-ff75470f7085c3ca23a9b16be43881b6bc953345.zip
Fix EXP modifiers to match aegis modifiers calclution.
- Now Renewal Level Penalty being calculated in pc_calcexp only - Now Guild Tax is being paid after experience modifiers and not before - Now Experience modifiers being calculated in right way as in aegis (Race modifiers -> PK modifiers -> Premium modifiers -> Buff modifiers)
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 19fee52a5..b6b36dd61 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2337,11 +2337,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) {
if(flag) {
if(base_exp || job_exp) {
if( md->dmglog[i].flag != MDLF_PET || battle_config.pet_attack_exp_to_master ) {
-#ifdef RENEWAL_EXP
- int rate = pc->level_penalty_mod(md->level - (tmpsd[i])->status.base_level, md->status.race, md->status.mode, 1);
- base_exp = (unsigned int)cap_value(base_exp * rate / 100, 1, UINT_MAX);
- job_exp = (unsigned int)cap_value(job_exp * rate / 100, 1, UINT_MAX);
-#endif
pc->gainexp(tmpsd[i], &md->bl, base_exp, job_exp, false);
}
}