Follow up to b307ae8

* MD_FIXED_ITEMDROP only applies to renewal level penalty mod.
This commit is contained in:
aleos89 2016-02-13 08:27:19 -05:00
parent 719c43fb07
commit 95a8d656a2
2 changed files with 26 additions and 28 deletions

View File

@ -2459,7 +2459,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
drop_rate = 1; drop_rate = 1;
} }
if (!(md->status.mode&MD_FIXED_ITEMDROP)) {
// change drops depending on monsters size [Valaris] // change drops depending on monsters size [Valaris]
if (battle_config.mob_size_influence) { if (battle_config.mob_size_influence) {
if (md->special_state.size == SZ_MEDIUM && drop_rate >= 2) if (md->special_state.size == SZ_MEDIUM && drop_rate >= 2)
@ -2488,7 +2487,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
drop_rate += (int)(0.5 + (drop_rate * battle_config.vip_drop_increase) / 100); drop_rate += (int)(0.5 + (drop_rate * battle_config.vip_drop_increase) / 100);
drop_rate = min(drop_rate,10000); //cap it to 100% drop_rate = min(drop_rate,10000); //cap it to 100%
} }
}
#ifdef RENEWAL_DROP #ifdef RENEWAL_DROP
if( drop_modifier != 100 ) { if( drop_modifier != 100 ) {
drop_rate = apply_rate(drop_rate, drop_modifier); drop_rate = apply_rate(drop_rate, drop_modifier);

View File

@ -10400,7 +10400,7 @@ int pc_level_penalty_mod(struct map_session_data *sd, int mob_level, uint32 mob_
nullpo_ret(sd); nullpo_ret(sd);
if (type == 2 && mode&MD_FIXED_ITEMDROP) if (type == 2 && (mode&MD_FIXED_ITEMDROP))
return rate; return rate;
diff = mob_level - sd->status.base_level; diff = mob_level - sd->status.base_level;