diff options
author | gumi <git@gumi.ca> | 2018-10-03 21:02:01 -0400 |
---|---|---|
committer | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-10-20 22:40:58 -0300 |
commit | df3f7552e61d1dae45e83c55ff36b95ab95181bb (patch) | |
tree | 09d9c35e8249ac798b1c8afafb558be465529637 /src/map/battle.c | |
parent | b0be3f023a024a4f8cc9903d52add7c81961303a (diff) | |
download | hercules-df3f7552e61d1dae45e83c55ff36b95ab95181bb.tar.gz hercules-df3f7552e61d1dae45e83c55ff36b95ab95181bb.tar.bz2 hercules-df3f7552e61d1dae45e83c55ff36b95ab95181bb.tar.xz hercules-df3f7552e61d1dae45e83c55ff36b95ab95181bb.zip |
add a warning for `traps_setting` in battle conf
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 4 |
1 files changed, 4 insertions, 0 deletions
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]; |