summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-01 23:22:19 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-01 23:22:19 +0000
commit7febb427b56038c6ca313e483674b5ce159e8868 (patch)
treed058e807ec0fc19e3e79bc0828d48cb6b188b85b /src/map
parent12e0b7a12a177cee9ab6e1f16d032d05da47a429 (diff)
downloadhercules-7febb427b56038c6ca313e483674b5ce159e8868.tar.gz
hercules-7febb427b56038c6ca313e483674b5ce159e8868.tar.bz2
hercules-7febb427b56038c6ca313e483674b5ce159e8868.tar.xz
hercules-7febb427b56038c6ca313e483674b5ce159e8868.zip
Follow up r15638: the 'sd' party is unnecessary -- when there is no player (e.g. killed by command/npc) the modifier is always 100%. also, the primary 'sd' in mob_dead is 'mvp_sd' and not 'sd'.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15645 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index a0d236746..73d752702 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2186,7 +2186,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
{
if( md->dmglog[i].flag != MDLF_PET || battle_config.pet_attack_exp_to_master ) {
#if REMODE
- if(sd && !md->db->mexp)
+ if(!md->db->mexp)
party_renewal_exp_mod(&base_exp,&job_exp,tmpsd[i]->status.base_level,md->level);
#endif
pc_gainexp(tmpsd[i], &md->bl, base_exp, job_exp, false);
@@ -2259,7 +2259,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if (sd && sd->sc.data[SC_ITEMBOOST]) // now rig the drop rate to never be over 90% unless it is originally >90%.
drop_rate = max(drop_rate,cap_value((int)(0.5+drop_rate*(sd->sc.data[SC_ITEMBOOST]->val1)/100.),0,9000));
#if RE_DROP_MOD
- if(sd && drop_modifier != 100 && !md->db->mexp)
+ if(drop_modifier != 100 && !md->db->mexp)
drop_rate = drop_rate * drop_modifier / 100;
#endif
// attempt to drop the item