Skip to content

Commit

Permalink
Schema: Fix some bugs in the [micro_ai] definition
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Oct 24, 2018
1 parent 02da996 commit bf81491
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions data/schema/core/actionwml.cfg
Expand Up @@ -1351,7 +1351,7 @@
{REQUIRED_KEY station_x s_unsigned}
{REQUIRED_KEY station_y s_unsigned}
{REQUIRED_KEY guard_x s_unsigned}
{REQUIRED_KEY guard_Y s_unsigned}
{REQUIRED_KEY guard_y s_unsigned}
{DEFAULT_KEY ca_score s_unsigned 300000}
[/case]
[case]
Expand Down Expand Up @@ -1386,7 +1386,7 @@
{FILTER_TAG "filter_location" location ()}
[tag]
name="mobilize_condition"
super="$condition_wml"
super="$conditional_wml"
[/tag]
[/case]
[case]
Expand All @@ -1403,7 +1403,7 @@
{FILTER_TAG "filter_location" location min=1}
{FILTER_TAG "filter_location_wander" location ()}
{DEFAULT_KEY ca_score s_unsigned 300000}
{DATA_TAG stationary s_bool no}
{DEFAULT_KEY stationary s_bool no}
[/case]
[case]
value=messenger_escort
Expand Down Expand Up @@ -1443,7 +1443,7 @@
[case]
value=recruit_random
{DEFAULT_KEY ca_score s_unsigned 180000}
{DEFAULT_KEY skip_low_gold_recruit s_bool no}
{DEFAULT_KEY skip_low_gold_recruiting s_bool no}
[tag]
name="probability"
max=infinite
Expand All @@ -1463,6 +1463,11 @@
{FILTER_TAG "filter" unit ()}
{FILTER_TAG "filter_second" unit ()}
[/case]
[else]
# For unknown ai_type, accept anything
any_tag=yes
{ANY_KEY string}
[/else]
[/switch]
[/then]
[/if]
Expand Down

0 comments on commit bf81491

Please sign in to comment.