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:
Aleos
2017-11-08 18:55:20 -05:00
committed by GitHub
parent 86241b0eb8
commit 63daab5860
4 changed files with 8 additions and 1 deletions

View File

@@ -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]