summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2019-07-14 04:21:37 +0800
committerEmistry Haoyan <equinox1991@gmail.com>2019-07-14 13:07:48 +0800
commite06b782338e1356b42c80c80d6d59a36d833fcd8 (patch)
treec98017cf2abdf6a1ca4487d23f027b3183730087 /src/map/battle.c
parenta5eb6ec995612c878a3b6cb522520ffae8b13a3b (diff)
downloadhercules-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/battle.c')
-rw-r--r--src/map/battle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index c40c3afac..7fa1567e7 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7436,6 +7436,7 @@ static const struct battle_data {
{ "critical_max_limit", &battle_config.critical_max, SHRT_MAX, 1, INT_MAX, },
{ "hit_min_limit", &battle_config.hit_min, 1, 1, INT_MAX, },
{ "hit_max_limit", &battle_config.hit_max, SHRT_MAX, 1, INT_MAX, },
+ { "autoloot_adjust", &battle_config.autoloot_adjust, 0, 0, 1, },
};
static bool battle_set_value_sub(int index, int value)