Unit tests: change attack_depth to leader_value for aspect tests
attack_depth has been removed
This commit is contained in:
parent
c0bc8c548c
commit
f901a0fd81
2 changed files with 78 additions and 78 deletions
|
@ -1,48 +1,48 @@
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_simplified_aspect attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_simplified_aspect leader_value
|
||||||
{SPLIT 3,5,5,3,7,7,5,3,5,5,7,7 ,}
|
{SPLIT 9,3,3,9,7,7,3,9,3,3,7,7 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
time_of_day=first_watch,second_watch
|
time_of_day=first_watch,second_watch
|
||||||
attack_depth=7
|
leader_value=7
|
||||||
[/ai]
|
[/ai]
|
||||||
[ai]
|
[ai]
|
||||||
turns=1,4,8
|
turns=1,4,8
|
||||||
attack_depth=3
|
leader_value=9
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_abbreviated_aspect attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_abbreviated_aspect leader_value
|
||||||
{SPLIT 7,7,7,7,7,7,5,5,5,5,9,9 ,}
|
{SPLIT 7,7,7,7,7,7,3,3,3,3,9,9 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
time_of_day=first_watch,second_watch
|
time_of_day=first_watch,second_watch
|
||||||
attack_depth=9
|
leader_value=9
|
||||||
[attack_depth]
|
[leader_value]
|
||||||
turns=1-6
|
turns=1-6
|
||||||
value=7
|
value=7
|
||||||
[/attack_depth]
|
[/leader_value]
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_standard_aspect attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_standard_aspect leader_value
|
||||||
{SPLIT 7,7,7,7,7,7,7,7,7,7,7,7 ,
|
{SPLIT 7,7,7,7,7,7,7,7,7,7,7,7 ,
|
||||||
} (
|
} (
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
name=standard_aspect
|
name=standard_aspect
|
||||||
value=7
|
value=7
|
||||||
[/aspect]
|
[/aspect]
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_composite_aspect attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_composite_aspect leader_value
|
||||||
{SPLIT 5,5,14,14,14,14,5,5,5,5,12,12 ,}
|
{SPLIT 3,3,14,14,14,14,3,3,3,3,12,12 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
[facet]
|
[facet]
|
||||||
time_of_day=first_watch,second_watch
|
time_of_day=first_watch,second_watch
|
||||||
value=12
|
value=12
|
||||||
|
@ -55,24 +55,24 @@
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_lua_aspect attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_lua_aspect leader_value
|
||||||
{SPLIT 2,4,6,8,10,12,14,16,18,20,22,24 ,}
|
{SPLIT 2,4,6,8,10,12,14,16,18,20,22,24 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
engine=lua
|
engine=lua
|
||||||
code=<<return wesnoth.current.turn * 2>>
|
code=<<return wesnoth.current.turn * 2>>
|
||||||
[/aspect]
|
[/aspect]
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_composite_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_composite_facet leader_value
|
||||||
{SPLIT 5,5,5,5,5,5,7,7,7,14,14,14 ,}
|
{SPLIT 3,3,3,3,3,3,7,7,7,14,14,14 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
[facet]
|
[facet]
|
||||||
name=composite_aspect
|
name=composite_aspect
|
||||||
turns=7-12
|
turns=7-12
|
||||||
|
@ -88,12 +88,12 @@
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_lua_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_lua_facet leader_value
|
||||||
{SPLIT 2,7,7,2,7,7,14,7,7,5,7,7 ,}
|
{SPLIT 2,7,7,2,7,7,14,7,7,5,7,7 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
[facet]
|
[facet]
|
||||||
engine=lua
|
engine=lua
|
||||||
time_of_day=dusk
|
time_of_day=dusk
|
||||||
|
@ -111,33 +111,33 @@
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_composite_default_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_composite_default_facet leader_value
|
||||||
{SPLIT 10,5,5,5,5,5,10,5,5,5,5,5 ,}
|
{SPLIT 10,3,3,3,3,3,10,3,3,3,3,3 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
[default]
|
[default]
|
||||||
name=composite_aspect
|
name=composite_aspect
|
||||||
[facet]
|
[facet]
|
||||||
id=my_composite_default_attack_depth
|
id=my_composite_default_leader_value
|
||||||
time_of_day=dawn
|
time_of_day=dawn
|
||||||
value=10
|
value=10
|
||||||
[/facet]
|
[/facet]
|
||||||
[default]
|
[default]
|
||||||
value=5
|
value=3
|
||||||
[/default]
|
[/default]
|
||||||
[/default]
|
[/default]
|
||||||
[/aspect]
|
[/aspect]
|
||||||
[/ai]
|
[/ai]
|
||||||
) ()}
|
) ()}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_basic_lua_default_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_basic_lua_default_facet leader_value
|
||||||
{SPLIT 1,2,3,4,5,6,7,8,9,10,11,12 ,}
|
{SPLIT 1,2,3,4,5,6,7,8,9,10,11,12 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
[default]
|
[default]
|
||||||
engine=lua
|
engine=lua
|
||||||
code=<<return wesnoth.current.turn>>
|
code=<<return wesnoth.current.turn>>
|
||||||
|
|
|
@ -1,38 +1,38 @@
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_delete_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_delete_facet leader_value
|
||||||
{SPLIT 7,7,7,7,7,7,5,5,5,5,5,5 ,}
|
{SPLIT 7,7,7,7,7,7,3,3,3,3,3,3 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[attack_depth]
|
[leader_value]
|
||||||
id=custom_depth
|
id=custom_value
|
||||||
value=7
|
value=7
|
||||||
[/attack_depth]
|
[/leader_value]
|
||||||
[/ai]
|
[/ai]
|
||||||
) (
|
) (
|
||||||
[event]
|
[event]
|
||||||
name=turn 6 end
|
name=turn 6 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=delete
|
action=delete
|
||||||
path=aspect[attack_depth].facet[custom_depth]
|
path=aspect[leader_value].facet[custom_value]
|
||||||
[/modify_ai]
|
[/modify_ai]
|
||||||
[/event]
|
[/event]
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_change_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_change_facet leader_value
|
||||||
{SPLIT 7,7,7,7,7,7,8,8,8,8,8,8 ,}
|
{SPLIT 7,7,7,7,7,7,8,8,8,8,8,8 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[attack_depth]
|
[leader_value]
|
||||||
id=custom_depth
|
id=custom_value
|
||||||
value=7
|
value=7
|
||||||
[/attack_depth]
|
[/leader_value]
|
||||||
[/ai]
|
[/ai]
|
||||||
) (
|
) (
|
||||||
[event]
|
[event]
|
||||||
name=turn 6 end
|
name=turn 6 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=change
|
action=change
|
||||||
path=aspect[attack_depth].facet[custom_depth]
|
path=aspect[leader_value].facet[custom_value]
|
||||||
[facet]
|
[facet]
|
||||||
value=8
|
value=8
|
||||||
[/facet]
|
[/facet]
|
||||||
|
@ -40,23 +40,23 @@
|
||||||
[/event]
|
[/event]
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_replace_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_replace_facet leader_value
|
||||||
{SPLIT 7,7,7,7,8,8,8,8,5,5,5,5 ,}
|
{SPLIT 7,7,7,7,8,8,8,8,3,3,3,3 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[attack_depth]
|
[leader_value]
|
||||||
id=custom_depth
|
id=custom_value
|
||||||
value=7
|
value=7
|
||||||
[/attack_depth]
|
[/leader_value]
|
||||||
[/ai]
|
[/ai]
|
||||||
) (
|
) (
|
||||||
[event]
|
[event]
|
||||||
name=turn 4 end
|
name=turn 4 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=add
|
action=add
|
||||||
path=aspect[attack_depth].facet[]
|
path=aspect[leader_value].facet[]
|
||||||
[facet]
|
[facet]
|
||||||
id=custom_depth
|
id=custom_value
|
||||||
value=8
|
value=8
|
||||||
[/facet]
|
[/facet]
|
||||||
[/modify_ai]
|
[/modify_ai]
|
||||||
|
@ -65,28 +65,28 @@
|
||||||
name=turn 8 end
|
name=turn 8 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=delete
|
action=delete
|
||||||
path=aspect[attack_depth].facet[custom_depth]
|
path=aspect[leader_value].facet[custom_value]
|
||||||
[/modify_ai]
|
[/modify_ai]
|
||||||
[/event]
|
[/event]
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_add_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_add_facet leader_value
|
||||||
{SPLIT 7,7,7,7,8,8,8,8,7,7,7,7 ,}
|
{SPLIT 7,7,7,7,8,8,8,8,7,7,7,7 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[attack_depth]
|
[leader_value]
|
||||||
id=custom_depth
|
id=custom_value
|
||||||
value=7
|
value=7
|
||||||
[/attack_depth]
|
[/leader_value]
|
||||||
[/ai]
|
[/ai]
|
||||||
) (
|
) (
|
||||||
[event]
|
[event]
|
||||||
name=turn 4 end
|
name=turn 4 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=add
|
action=add
|
||||||
path=aspect[attack_depth].facet[]
|
path=aspect[leader_value].facet[]
|
||||||
[facet]
|
[facet]
|
||||||
id=custom_depth2
|
id=custom_value2
|
||||||
value=8
|
value=8
|
||||||
[/facet]
|
[/facet]
|
||||||
[/modify_ai]
|
[/modify_ai]
|
||||||
|
@ -95,27 +95,27 @@
|
||||||
name=turn 8 end
|
name=turn 8 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=delete
|
action=delete
|
||||||
path=aspect[attack_depth].facet[custom_depth2]
|
path=aspect[leader_value].facet[custom_value2]
|
||||||
[/modify_ai]
|
[/modify_ai]
|
||||||
[/event]
|
[/event]
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_change_default_facet attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_change_default_facet leader_value
|
||||||
{SPLIT 5,5,5,5,7,7,7,7,8,8,8,8 ,}
|
{SPLIT 3,3,3,3,7,7,7,7,8,8,8,8 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[attack_depth]
|
[leader_value]
|
||||||
turns=5-8
|
turns=5-8
|
||||||
id=custom_depth
|
id=custom_value
|
||||||
value=7
|
value=7
|
||||||
[/attack_depth]
|
[/leader_value]
|
||||||
[/ai]
|
[/ai]
|
||||||
) (
|
) (
|
||||||
[event]
|
[event]
|
||||||
name=turn 6 end
|
name=turn 6 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=change
|
action=change
|
||||||
path=aspect[attack_depth].facet[default_facet]
|
path=aspect[leader_value].facet[default_facet]
|
||||||
[facet]
|
[facet]
|
||||||
value=8
|
value=8
|
||||||
[/facet]
|
[/facet]
|
||||||
|
@ -123,23 +123,23 @@
|
||||||
[/event]
|
[/event]
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_nested_facets attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_nested_facets leader_value
|
||||||
{SPLIT 5,7,7,14,14,14,12,7,7,14,14,5 ,}
|
{SPLIT 3,7,7,14,14,14,12,7,7,14,14,3 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
[facet]
|
[facet]
|
||||||
id=composite_depth
|
id=composite_value
|
||||||
name=composite_aspect
|
name=composite_aspect
|
||||||
turns=2-11
|
turns=2-11
|
||||||
[facet]
|
[facet]
|
||||||
id=night_depth
|
id=night_value
|
||||||
time_of_day=dusk,first_watch,second_watch
|
time_of_day=dusk,first_watch,second_watch
|
||||||
value=14
|
value=14
|
||||||
[/facet]
|
[/facet]
|
||||||
[default]
|
[default]
|
||||||
id=my_default_attack_depth
|
id=my_default_leader_value
|
||||||
value=7
|
value=7
|
||||||
[/default]
|
[/default]
|
||||||
[/facet]
|
[/facet]
|
||||||
|
@ -150,9 +150,9 @@
|
||||||
name=turn 4 end
|
name=turn 4 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=add
|
action=add
|
||||||
path=aspect[attack_depth].facet[composite_depth].facet[]
|
path=aspect[leader_value].facet[composite_value].facet[]
|
||||||
[facet]
|
[facet]
|
||||||
id=twilight_depth
|
id=twilight_value
|
||||||
time_of_day=dawn,dusk
|
time_of_day=dawn,dusk
|
||||||
value=12
|
value=12
|
||||||
[/facet]
|
[/facet]
|
||||||
|
@ -162,17 +162,17 @@
|
||||||
name=turn 8 end
|
name=turn 8 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=delete
|
action=delete
|
||||||
path=aspect[attack_depth].facet[composite_depth].facet[twilight_depth]
|
path=aspect[leader_value].facet[composite_value].facet[twilight_value]
|
||||||
[/modify_ai]
|
[/modify_ai]
|
||||||
[/event]
|
[/event]
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_composite_default_facets attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_composite_default_facets leader_value
|
||||||
{SPLIT 10,5,5,5,5,5,5,5,12,12,12,12 ,}
|
{SPLIT 10,3,3,3,3,3,3,3,12,12,12,12 ,}
|
||||||
(
|
(
|
||||||
[ai]
|
[ai]
|
||||||
[aspect]
|
[aspect]
|
||||||
id=attack_depth
|
id=leader_value
|
||||||
[default]
|
[default]
|
||||||
name=composite_aspect
|
name=composite_aspect
|
||||||
[facet]
|
[facet]
|
||||||
|
@ -181,7 +181,7 @@
|
||||||
value=10
|
value=10
|
||||||
[/facet]
|
[/facet]
|
||||||
[default]
|
[default]
|
||||||
value=5
|
value=3
|
||||||
[/default]
|
[/default]
|
||||||
[/default]
|
[/default]
|
||||||
[/aspect]
|
[/aspect]
|
||||||
|
@ -191,14 +191,14 @@
|
||||||
name=turn 4 end
|
name=turn 4 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=delete
|
action=delete
|
||||||
path=aspect[attack_depth].facet[default_facet].facet[dawn_default]
|
path=aspect[leader_value].facet[default_facet].facet[dawn_default]
|
||||||
[/modify_ai]
|
[/modify_ai]
|
||||||
[/event]
|
[/event]
|
||||||
[event]
|
[event]
|
||||||
name=turn 8 end
|
name=turn 8 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=add
|
action=add
|
||||||
path=aspect[attack_depth].facet[default_facet].facet[]
|
path=aspect[leader_value].facet[default_facet].facet[]
|
||||||
[facet]
|
[facet]
|
||||||
value=12
|
value=12
|
||||||
[/facet]
|
[/facet]
|
||||||
|
@ -206,14 +206,14 @@
|
||||||
[/event]
|
[/event]
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{AI_ASPECT_UNIT_TEST test_modify_ai_change_aspect attack_depth
|
{AI_ASPECT_UNIT_TEST test_modify_ai_change_aspect leader_value
|
||||||
{SPLIT 5,5,5,5,5,5,3,4,4,5,5,6 ,}
|
{SPLIT 3,3,3,3,3,3,3,4,4,5,5,6 ,}
|
||||||
() (
|
() (
|
||||||
[event]
|
[event]
|
||||||
name=turn 6 end
|
name=turn 6 end
|
||||||
[modify_ai]
|
[modify_ai]
|
||||||
action=change
|
action=change
|
||||||
path=aspect[attack_depth]
|
path=aspect[leader_value]
|
||||||
[aspect]
|
[aspect]
|
||||||
engine=lua
|
engine=lua
|
||||||
code=<<return math.floor(wesnoth.current.turn / 2)>>
|
code=<<return math.floor(wesnoth.current.turn / 2)>>
|
||||||
|
|
Loading…
Add table
Reference in a new issue