A few more missing pieces to the AI schema

This commit is contained in:
Celtic Minstrel 2018-03-28 23:24:07 -04:00
parent ff66583c0d
commit c2716728e5
4 changed files with 9 additions and 3 deletions

View file

@ -48,6 +48,7 @@
{./engine.cfg}
{./aspect_complex.cfg}
{./aspect_simple.cfg}
{./recruitment.cfg}
{./goal.cfg}
{./stage.cfg}
[/tag]

View file

@ -97,12 +97,17 @@
value=recruitment_save_gold
super="{BASE}~recruitment_save_gold"
[/case]
[case]
value=attacks
super="{BASE}~attacks"
[/case]
[/switch]
#enddef
[tag]
name="aspect"
super="$ai/$component"
max=infinite
{AI_ASPECT_INVALIDATE}
[if]
{AI_ASPECT_FILTER_STANDARD}

View file

@ -8,6 +8,7 @@
[else]
[switch]
key=name
# TODO: The default is target_unit
[case]
value=target,target_unit
{FILTER_TAG criteria unit ()}

View file

@ -43,11 +43,11 @@
[tag]
name="$candidate_action"
super="$ai/$component"
{SIMPLE_KEY max_score int}
[switch]
key=engine
[case]
value=lua
{SIMPLE_KEY max_score int}
{SIMPLE_KEY location string}
{SIMPLE_KEY evaluation string}
{SIMPLE_KEY execution string}
@ -55,7 +55,6 @@
[case]
value=cpp
{SIMPLE_KEY score int}
{SIMPLE_KEY max_score int}
[/case]
[case]
value=fai
@ -67,7 +66,7 @@
{SIMPLE_KEY me formula}
{SIMPLE_KEY target formula}
[/tag]
# TODO: Filters, variables
# TODO: variables?
[/case]
[/switch]
[/tag]