From df3f7552e61d1dae45e83c55ff36b95ab95181bb Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 3 Oct 2018 21:02:01 -0400 Subject: add a warning for `traps_setting` in battle conf --- src/map/battle.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/map/battle.c b/src/map/battle.c index 2cf04ffce..895876300 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -7525,6 +7525,10 @@ static bool battle_config_read(const char *filename, bool imported) if (!imported) battle->config_set_defaults(); + if (libconfig->lookup(&config, "battle_configuration/traps_setting") != NULL) { + ShowError("The `traps_setting` battle conf option has been replaced by `trap_visibility`. Please see conf/map/battle/skill.conf.\n"); + } + for (i = 0; i < ARRAYLENGTH(battle_data); i++) { int type, val; char config_name[256]; -- cgit v1.2.3-70-g09d2