|
@@ -10077,6 +10077,9 @@ static const struct _battle_data {
|
|
{ "keep_ap_on_logout", &battle_config.keep_ap_on_logout, 1, 0, 1, },
|
|
{ "keep_ap_on_logout", &battle_config.keep_ap_on_logout, 1, 0, 1, },
|
|
{ "attack_machine_level_difference", &battle_config.attack_machine_level_difference, 15, 0, INT_MAX, },
|
|
{ "attack_machine_level_difference", &battle_config.attack_machine_level_difference, 15, 0, INT_MAX, },
|
|
|
|
|
|
|
|
+ { "feature.barter", &battle_config.feature_barter, 1, 0, 1, },
|
|
|
|
+ { "feature.barter_extended", &battle_config.feature_barter_extended, 1, 0, 1, },
|
|
|
|
+
|
|
#include "../custom/battle_config_init.inc"
|
|
#include "../custom/battle_config_init.inc"
|
|
};
|
|
};
|
|
|
|
|
|
@@ -10260,6 +10263,20 @@ void battle_adjust_conf()
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#if !( PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114 )
|
|
|
|
+ if( battle_config.feature_barter ){
|
|
|
|
+ ShowWarning("conf/battle/feature.conf barter shop system is enabled but it requires PACKETVER 2018-07-04 or newer, disabling...\n");
|
|
|
|
+ battle_config.feature_barter = 0;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#if !( PACKETVER_MAIN_NUM >= 20191120 || PACKETVER_RE_NUM >= 20191106 || PACKETVER_ZERO_NUM >= 20191127 )
|
|
|
|
+ if( battle_config.feature_barter_extended ){
|
|
|
|
+ ShowWarning("conf/battle/feature.conf extended barter shop system is enabled but it requires PACKETVER 2019-11-06 or newer, disabling...\n");
|
|
|
|
+ battle_config.feature_barter_extended = 0;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
#ifndef CELL_NOSTACK
|
|
#ifndef CELL_NOSTACK
|
|
if (battle_config.custom_cell_stack_limit != 1)
|
|
if (battle_config.custom_cell_stack_limit != 1)
|
|
ShowWarning("Battle setting 'custom_cell_stack_limit' takes no effect as this server was compiled without Cell Stack Limit support.\n");
|
|
ShowWarning("Battle setting 'custom_cell_stack_limit' takes no effect as this server was compiled without Cell Stack Limit support.\n");
|