Add deprecation message for MICRO_AI_GUARDIAN macro
This commit is contained in:
parent
7e06b3cf35
commit
ca1c99160a
1 changed files with 22 additions and 0 deletions
|
@ -291,6 +291,28 @@
|
|||
[/engine]
|
||||
{RCA_STAGE}
|
||||
[/ai]
|
||||
|
||||
# Somewhat hacky way to get a deprecation message displayed
|
||||
# This macro goes into the [side] tag, so ActionWML tags cannot be used
|
||||
[unit]
|
||||
type=Fog Clearer
|
||||
x,y=1,1
|
||||
id=ai_micro_ai_guardian_fake_unit
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
id=ai_micro_ai_guardian_deprecation_message
|
||||
|
||||
[wml_message]
|
||||
logger=warn
|
||||
message = "The MICRO_AI_GUARDIAN macro is deprecated. Use the macros for the individual guardian Micro AI engines instead."
|
||||
[/wml_message]
|
||||
|
||||
[kill]
|
||||
id=ai_micro_ai_guardian_fake_unit
|
||||
[/kill]
|
||||
[/event]
|
||||
[/unit]
|
||||
#enddef
|
||||
|
||||
#define MICRO_AI_COWARD
|
||||
|
|
Loading…
Add table
Reference in a new issue