summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2018-09-02 11:32:03 +0530
committerDastgir <dastgirp@gmail.com>2018-10-13 16:45:25 +0530
commitd2c21b1e412a7a2f3c965a3335ea78a992e7b873 (patch)
treec43cd899dbbfaaca7e2d225178d004e5ffe048b3 /src/map/battle.c
parent611bda248b3cb221bef4ad81f74c0508a76095d9 (diff)
downloadhercules-d2c21b1e412a7a2f3c965a3335ea78a992e7b873.tar.gz
hercules-d2c21b1e412a7a2f3c965a3335ea78a992e7b873.tar.bz2
hercules-d2c21b1e412a7a2f3c965a3335ea78a992e7b873.tar.xz
hercules-d2c21b1e412a7a2f3c965a3335ea78a992e7b873.zip
Fixed Issue #2177
If Item Price is 0, it is now changed to 1.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index fceb30be1..9d4c416b0 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7371,6 +7371,8 @@ static const struct battle_data {
{ "storage_use_item", &battle_config.storage_use_item, 0, 0, 1, },
{ "features/enable_attendance_system", &battle_config.feature_enable_attendance_system,1, 0, 1, },
{ "features/feature_attendance_endtime",&battle_config.feature_attendance_endtime, 1, 0, 99999999, },
+ { "min_item_buy_price", &battle_config.min_item_buy_price, 1, 0, INT_MAX, },
+ { "min_item_sell_price", &battle_config.min_item_sell_price, 0, 0, INT_MAX, },
};
static bool battle_set_value_sub(int index, int value)