diff options
author | shennetsind <ind@henn.et> | 2013-07-31 14:19:53 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-31 14:19:53 -0300 |
commit | e914c4806f72678babe646c7651bbdbbf78221fd (patch) | |
tree | 0f28d7e06be0241bbbba47e5cea99ab08fcdcc54 /src/map/party.c | |
parent | f653ede9bf4ae510b0e673f308410637a6b0cba7 (diff) | |
download | hercules-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/party.c')
-rw-r--r-- | src/map/party.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/party.c b/src/map/party.c index cacd016e4..629bf9227 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -963,7 +963,9 @@ int party_exp_share(struct party_data* p, struct block_list* src, unsigned int b for (i = 0; i < c; i++) { #ifdef RENEWAL_EXP if( !(src && src->type == BL_MOB && ((TBL_MOB*)src)->db->mexp) ){ - int rate = pc->level_penalty_mod(sd[i], (TBL_MOB*)src, 1); + struct mob_data *md = (TBL_MOB*)src; + int rate = pc->level_penalty_mod(md->level - (sd[i])->status.base_level, md->status.race, md->status.mode, 1); + base_exp = (unsigned int)cap_value(base_exp_bonus * rate / 100, 1, UINT_MAX); job_exp = (unsigned int)cap_value(job_exp_bonus * rate / 100, 1, UINT_MAX); } |