diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2019-07-14 04:21:37 +0800 |
---|---|---|
committer | Emistry Haoyan <equinox1991@gmail.com> | 2019-07-14 13:07:48 +0800 |
commit | e06b782338e1356b42c80c80d6d59a36d833fcd8 (patch) | |
tree | c98017cf2abdf6a1ca4487d23f027b3183730087 /src/map/mob.c | |
parent | a5eb6ec995612c878a3b6cb522520ffae8b13a3b (diff) | |
download | hercules-e06b782338e1356b42c80c80d6d59a36d833fcd8.tar.gz hercules-e06b782338e1356b42c80c80d6d59a36d833fcd8.tar.bz2 hercules-e06b782338e1356b42c80c80d6d59a36d833fcd8.tar.xz hercules-e06b782338e1356b42c80c80d6d59a36d833fcd8.zip |
Added battle config autoloot_adjust
Added battle config autoloot_adjust that allows autoloot to take player drop penalties and bonuses into account.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 8511f8523..c0c292a30 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2570,7 +2570,7 @@ static 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] |