AOI: General AI rewrite

Removes all the default values and improves the syntax where
possible

(cherry-picked from commit 9086e17b15)
This commit is contained in:
DisherProject 2018-08-31 13:14:41 +02:00 committed by Lari Nieminen
parent b9f0cd174d
commit 8b627d4391
7 changed files with 10 additions and 59 deletions

View file

@ -94,11 +94,6 @@
canrecruit=yes
facing=se
[ai]
grouping=offensive
attack_depth=5
[/ai]
[/side]
{STARTING_VILLAGES 1 6}

View file

@ -69,21 +69,15 @@
[ai]
villages_per_scout=6
aggression=0.5
caution=0.25
leader_value=3
village_value=1
scout_village_targeting=3
[goal]
name=protect_unit
[criteria]
side=2
canrecruit=yes
[/criteria]
protect_radius=20
value=1
protect_radius=10
value=100
[/goal]
grouping=offensive
attack_depth=5
[/ai]
[/side]

View file

@ -72,11 +72,6 @@
canrecruit=yes
facing=se
[ai]
grouping=offensive
attack_depth=5
[/ai]
[/side]
[event]

View file

@ -78,17 +78,11 @@
facing=ne
[ai]
aggression=0.8
turns="4,5,6,10,11,12,16,17,18,22,23,24"
grouping=offensive
{ATTACK_DEPTH 1 3 5}
[/ai]
[ai]
aggression=-0.1
simple_targeting=yes
turns="1,2,3,7,8,9,13,14,15,19,20,21"
grouping=none
{ATTACK_DEPTH 1 3 5}
{AI_SIMPLE_DAY_ASPECT aggression -0.1}
{AI_SIMPLE_DAY_ASPECT simple_targeting yes}
{AI_SIMPLE_DAY_ASPECT grouping no}
{AI_SIMPLE_NIGHT_ASPECT aggression 0.8}
[/ai]
[/side]
@ -118,17 +112,10 @@
facing=sw
[ai]
aggression=0.8
turns="4,5,6,10,11,12,16,17,18,22,23,24"
grouping=offensive
attack_depth=5
[/ai]
[ai]
aggression=-0.1
turns="1,2,3,7,8,9,13,14,15,19,20,21"
grouping=none
attack_depth=5
simple_targeting=yes
{AI_SIMPLE_DAY_ASPECT aggression -0.1}
{AI_SIMPLE_DAY_ASPECT simple_targeting yes}
{AI_SIMPLE_DAY_ASPECT grouping no}
{AI_SIMPLE_NIGHT_ASPECT aggression 0.8}
[/ai]
[/side]

View file

@ -72,11 +72,7 @@
facing=se
[ai]
grouping=offensive
{ATTACK_DEPTH 4 5 6}
villages_per_scout=4
leader_value=3
village_value=1
[/ai]
[/side]

View file

@ -51,14 +51,6 @@
canrecruit=yes
facing=nw
[ai]
villages_per_scout=4
leader_value=3
village_value=1
grouping=offensive
attack_depth=5
[/ai]
[/side]
[event]

View file

@ -64,14 +64,6 @@
canrecruit=yes
facing=se
[ai]
villages_per_scout=4
leader_value=3
village_value=1
grouping=offensive
attack_depth=5
[/ai]
[/side]
{STARTING_VILLAGES 1 4}