wesnoth/data/core/macros/ai_micro_ais.cfg
mattsc afa9235fa1 MAI engine deprecation macro: add side=1 to dummy unit
This will be ignored since the [unit] tag is used inside a [side[ tag,
but this way wmllint is happy.
2013-10-26 19:18:46 -07:00

93 lines
2.3 KiB
INI

#textdomain wesnoth-ai
#define RCA_STAGE
# The standard RCA stage with its candidate actions; same for all Micro AIs
[stage]
id=main_loop
name=ai_default_rca::candidate_action_evaluation_loop
{AI_CA_GOTO}
{AI_CA_RECRUITMENT}
{AI_CA_MOVE_LEADER_TO_GOALS}
{AI_CA_MOVE_LEADER_TO_KEEP}
{AI_CA_COMBAT}
{AI_CA_HEALING}
{AI_CA_VILLAGES}
{AI_CA_RETREAT}
{AI_CA_MOVE_TO_TARGETS}
{AI_CA_LEADER_SHARES_KEEP}
[/stage]
#enddef
#define MAI_MACRO_DEPRECATION MACRO_NAME
# 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
side=1 # will be ignored, but makes wmllint happy
id=ai_micro_ai_animals_fake_unit
[event]
name=prestart
id=micro_ai_deprecation_message_{MACRO_NAME}
[wml_message]
logger=warn
message = "The {MACRO_NAME} macro is deprecated as AI engine macros are not needed any more. You can safely delete it from the [side] tag."
[/wml_message]
[kill]
id=ai_micro_ai_animals_fake_unit
[/kill]
[/event]
[/unit]
#enddef
#define MICRO_AI_HEALER_SUPPORT
{MAI_MACRO_DEPRECATION MICRO_AI_HEALER_SUPPORT}
#enddef
#define MICRO_AI_BOTTLENECK_DEFENSE
{MAI_MACRO_DEPRECATION MICRO_AI_BOTTLENECK_DEFENSE}
#enddef
#define MICRO_AI_MESSENGER_ESCORT
{MAI_MACRO_DEPRECATION MICRO_AI_MESSENGER_ESCORT}
#enddef
#define MICRO_AI_ANIMALS
{MAI_MACRO_DEPRECATION MICRO_AI_ANIMALS}
#enddef
#define MICRO_AI_GUARDIAN
{MAI_MACRO_DEPRECATION MICRO_AI_GUARDIAN}
#enddef
#define MICRO_AI_PROTECT_UNIT
{MAI_MACRO_DEPRECATION MICRO_AI_PROTECT_UNIT}
#enddef
#define MICRO_AI_PATROL
{MAI_MACRO_DEPRECATION MICRO_AI_PATROL}
#enddef
#define MICRO_AI_LURKERS
{MAI_MACRO_DEPRECATION MICRO_AI_LURKERS}
#enddef
#define MICRO_AI_RECRUITING
{MAI_MACRO_DEPRECATION MICRO_AI_RECRUITING}
#enddef
#define MICRO_AI_GOTO
{MAI_MACRO_DEPRECATION MICRO_AI_GOTO}
#enddef
#define MICRO_AI_HANG_OUT
{MAI_MACRO_DEPRECATION MICRO_AI_HANG_OUT}
#enddef
#define MICRO_AI_SIMPLE_ATTACK
{MAI_MACRO_DEPRECATION MICRO_AI_SIMPLE_ATTACK}
#enddef