Follow up to b307ae8
* MD_FIXED_ITEMDROP only applies to renewal level penalty mod.
This commit is contained in:
parent
719c43fb07
commit
95a8d656a2
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user