Add deprecation message for MICRO_AI_ANIMALS macro
This commit is contained in:
parent
e730d94591
commit
a41a9fd3fb
1 changed files with 22 additions and 0 deletions
|
@ -104,6 +104,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_animals_fake_unit
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
id=ai_micro_ai_animals_deprecation_message
|
||||
|
||||
[wml_message]
|
||||
logger=warn
|
||||
message = "The MICRO_AI_ANIMALS macro is deprecated. Use the macros for the individual animal Micro AI engines instead."
|
||||
[/wml_message]
|
||||
|
||||
[kill]
|
||||
id=ai_micro_ai_animals_fake_unit
|
||||
[/kill]
|
||||
[/event]
|
||||
[/unit]
|
||||
#enddef
|
||||
|
||||
#define MICRO_AI_BIG_ANIMALS
|
||||
|
|
Loading…
Add table
Reference in a new issue