summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-31 14:19:53 -0300
committershennetsind <ind@henn.et>2013-07-31 14:19:53 -0300
commite914c4806f72678babe646c7651bbdbbf78221fd (patch)
tree0f28d7e06be0241bbbba47e5cea99ab08fcdcc54 /src/map/mob.c
parentf653ede9bf4ae510b0e673f308410637a6b0cba7 (diff)
downloadhercules-e914c4806f72678babe646c7651bbdbbf78221fd.tar.gz
hercules-e914c4806f72678babe646c7651bbdbbf78221fd.tar.bz2
hercules-e914c4806f72678babe646c7651bbdbbf78221fd.tar.xz
hercules-e914c4806f72678babe646c7651bbdbbf78221fd.zip
Fixed Bug #7453
Added the missing support for conf/battle/gm.conf::atcommand_mobinfo_type on @mobinfo (partially from rathena) Modified @ii to stop always displaying 'monsters dont drop this item' while the configuration is on. Special Thanks to Napster. http://hercules.ws/board/tracker/issue-7453-mobinfo-iteminfo-not-showing-the-correct-information-depending-the-level/ Follow up 2fbec282b9b3eb84f710d5537f70e6bc221187b3 Missing messages.conf entry Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index dedd541d9..b181c9b7b 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2285,7 +2285,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_EXP
- int rate = pc->level_penalty_mod(tmpsd[i], md, 1);
+ 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
@@ -2313,9 +2313,9 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
struct item_data* it = NULL;
int drop_rate;
#ifdef RENEWAL_DROP
- int drop_modifier = mvp_sd ? pc->level_penalty_mod(mvp_sd, md, 2) :
- second_sd ? pc->level_penalty_mod(second_sd, md, 2):
- third_sd ? pc->level_penalty_mod(third_sd, md, 2) :
+ int drop_modifier = mvp_sd ? pc->level_penalty_mod( md->level - mvp_sd->status.base_level, md->status.race, md->status.mode, 2) :
+ second_sd ? pc->level_penalty_mod( md->level - second_sd->status.base_level, md->status.race, md->status.mode, 2):
+ third_sd ? pc->level_penalty_mod( md->level - third_sd->status.base_level, md->status.race, md->status.mode, 2) :
100;/* no player was attached, we dont use any modifier (100 = rates are not touched) */
#endif
dlist->m = md->bl.m;