diff options
author | Haru <haru@dotalux.com> | 2019-05-06 00:19:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 00:19:06 +0200 |
commit | 574801d93c55b5ac41f9bdbd660f747f1c5aaa76 (patch) | |
tree | 473c9ada31454ae62f73215ade30687cd61a3b4e /src/map/battle.c | |
parent | 31f47be4b26e69d2880e12530d021ce6c8c802ea (diff) | |
parent | 86a3d6ce9b259baf29d7cc05a8e75aa2b1e3ac24 (diff) | |
download | hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.gz hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.bz2 hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.xz hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.zip |
Merge pull request #2446 from hemagx/refinery_ui_update
Implement Refinery ui and Refine code refactor
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index b06de267d..2f33e2ea9 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -7419,6 +7419,8 @@ static const struct battle_data { { "ping_time", &battle_config.ping_time, 20, 0, 99999999, }, { "option_drop_max_loop", &battle_config.option_drop_max_loop, 10, 1, 100000, }, { "drop_connection_on_quit", &battle_config.drop_connection_on_quit, 0, 0, 1, }, + {"features/enable_refinery_ui", &battle_config.enable_refinery_ui, 1, 0, 1, }, + {"features/replace_refine_npcs", &battle_config.replace_refine_npcs, 1, 0, 1, }, }; static bool battle_set_value_sub(int index, int value) @@ -7544,6 +7546,18 @@ static void battle_adjust_conf(void) } #endif +#if !(PACKETVER_MAIN_NUM >= 20161130 || PACKETVER_RE_NUM >= 20161109 || defined(PACKETVER_ZERO)) + if (battle_config.enable_refinery_ui == 1) { + ShowWarning("conf/map/battle/feature.conf refinery ui is enabled but it requires PACKETVER 2016-11-09 RagexeRE/2016-11-30 Ragexe or newer, disabling...\n"); + battle_config.enable_refinery_ui = 0; + } + + if (battle_config.replace_refine_npcs == 1) { + ShowWarning("conf/map/battle/feature.conf replace refine npcs is enabled but it requires PACKETVER 2016-11-09 RagexeRE/2016-11-30 Ragexe or newer, disabling...\n"); + battle_config.replace_refine_npcs = 0; + } +#endif + #ifndef CELL_NOSTACK 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"); |