Added battle config autoloot_adjust (#2562)
* Fixes #2540. * Added battle config autoloot_adjust that allows autoloot to take player drop penalties and bonuses into account. Thanks to @ecdarreola!
This commit is contained in:
@@ -2738,7 +2738,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
|
||||
}
|
||||
// Announce first, or else ditem will be freed. [Lance]
|
||||
// By popular demand, use base drop rate for autoloot code. [Skotlex]
|
||||
mob_item_drop(md, dlist, ditem, 0, md->db->dropitem[i].p, homkillonly);
|
||||
mob_item_drop(md, dlist, ditem, 0, battle_config.autoloot_adjust ? drop_rate : md->db->dropitem[i].p, homkillonly);
|
||||
}
|
||||
|
||||
// Ore Discovery [Celest]
|
||||
|
||||
Reference in New Issue
Block a user