Skip to content

Commit

Permalink
A few more missing pieces to the AI schema
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 12, 2018
1 parent 52ae611 commit 0645b77
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions data/schema/ai/_main.cfg
Expand Up @@ -48,6 +48,7 @@
{./engine.cfg}
{./aspect_complex.cfg}
{./aspect_simple.cfg}
{./recruitment.cfg}
{./goal.cfg}
{./stage.cfg}
[/tag]
5 changes: 5 additions & 0 deletions data/schema/ai/aspect_complex.cfg
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions data/schema/ai/goal.cfg
Expand Up @@ -8,6 +8,7 @@
[else]
[switch]
key=name
# TODO: The default is target_unit
[case]
value=target,target_unit
{FILTER_TAG criteria unit ()}
Expand Down
5 changes: 2 additions & 3 deletions data/schema/ai/stage.cfg
Expand Up @@ -43,19 +43,18 @@
[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}
[/case]
[case]
value=cpp
{SIMPLE_KEY score int}
{SIMPLE_KEY max_score int}
[/case]
[case]
value=fai
Expand All @@ -67,7 +66,7 @@
{SIMPLE_KEY me formula}
{SIMPLE_KEY target formula}
[/tag]
# TODO: Filters, variables
# TODO: variables?
[/case]
[/switch]
[/tag]

0 comments on commit 0645b77

Please sign in to comment.