Show a deprecation message for [event]remove=yes, recommend [remove_event]

The remove attribute for [event] was never added to the validation schema,
and using [remove_event] seems easier to search WML for. Let's just recommend
the new key and deprecate the old one.
This commit is contained in:
Steve Cotton 2020-10-18 20:56:10 +02:00 committed by Steve Cotton
parent 1575457a3b
commit 28cd5f1e6e

View File

@ -766,6 +766,7 @@ end
function wml_actions.event(cfg)
if cfg.remove then
wesnoth.deprecated_message("[event]remove=yes", 2, "1.17.0", "Use [remove_event] instead of [event]remove=yes")
wml_actions.remove_event(cfg)
else
wesnoth.add_event_handler(cfg)