Used wmllint to update the formula/test scenarios.

This commit is contained in:
Alexander van Gessel 2008-09-16 22:04:51 +01:00
parent 6e0b3d228b
commit 0eef60de3b
3 changed files with 29 additions and 34 deletions

View file

@ -1,10 +1,9 @@
#textdomain wesnoth
# @file data/scenario-test.cfg
#textdomain wesnoth
[test]
name="Test scenario"
map_data="
border_size=1
map_data=" border_size=1
usage=map
Hh , Hh , Gg , Wwf , Wwf , Gs^Fp , Mm , Hh , Gg , Gs^Fp , Gg , Hh , Gg , Mm , Hh , Mm , Wwf , Wwf , Hh , Gs^Fp , Hh , Mm , Mm
@ -43,7 +42,7 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
[side]
type=Dwarvish Steelclad
side=1
canrecruit=1
canrecruit=yes
recruit=Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Thunderer,Thief,Poacher,Footpad
gold=100
controller=ai
@ -53,7 +52,7 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
name=FormulaAI
type=Lieutenant
side=2
canrecruit=1
canrecruit=yes
recruit=Spearman,Mage,Bowman,Horseman,Cavalryman,Heavy Infantryman,Fencer,Merman Fighter
gold=100

View file

@ -1,10 +1,9 @@
#textdomain wesnoth
# @file data/scenario-test.cfg
#textdomain wesnoth
[test]
name="Test scenario"
map_data="
border_size=1
map_data=" border_size=1
usage=map
Hh , Hh , Gg , Wwf , Wwf , Gs^Fp , Mm , Hh , Gg , Gs^Fp , Gg , Hh , Gg , Mm , Hh , Mm , Wwf , Wwf , Hh , Gs^Fp , Hh , Mm , Mm
@ -44,7 +43,7 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
type=Dwarvish Steelclad
id=side_1_leader
side=1
canrecruit=1
canrecruit=yes
recruit=Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Thunderer,Thief,Poacher,Footpad
gold=100
controller=human
@ -52,7 +51,7 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
x,y=10,8
type="Elvish Archer"
hitpoints=1
generate_description=yes
generate_name=yes
[/unit]
[/side]
@ -61,7 +60,7 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
name=FormulaAI
type=Dark Sorcerer
side=2
canrecruit=1
canrecruit=yes
recruit=Skeleton,Skeleton Archer,Walking Corpse,Ghost,Vampire Bat,Dark Adept,Ghoul
gold=100
shroud=yes
@ -69,7 +68,7 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
[unit]
x,y=8,5
type="Orcish Archer"
generate_description=yes
generate_name=yes
formula="if(attack, attack, move(me.loc, choose(unit_moves(me.loc), -distance_between(self, me.vars.guard_loc))))
where attack = choose(filter(attacks, units = [me.loc] and distance_between(me.vars.guard_loc, target) <= me.vars.guard_radius), avg_damage_inflicted)"
[ai_vars]
@ -80,29 +79,29 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
[unit]
x,y=3,8
type="Walking Corpse"
generate_description=yes
generate_name=yes
formula="move(me.loc, nearest_loc(nearest_loc(me.loc,map(filter(map.terrain,id='castle'),loc)),unit_moves(me.loc)))"
[/unit]
[unit]
x,y=6,20
type="Ghost"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=15,22
type="Ghost"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=12,19
type="Ghost"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=10,6
type="Lich"
experience=149
generate_description=yes
generate_name=yes
[/unit]
ai_algorithm=formula_ai

View file

@ -59,7 +59,7 @@ Xu , Xu , Qxu , Qxu , Ql , Ql
x,y=4,8
type="Elvish Avenger"
id=statue
generate_description=yes
generate_name=yes
hitpoints=4
[status]
stoned=on
@ -68,39 +68,39 @@ Xu , Xu , Qxu , Qxu , Ql , Ql
[unit]
x,y=12,8
type="Thief"
generate_description=yes
generate_name=yes
hitpoints=1
[/unit]
[unit]
x,y=9,8
type="Peasant"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=18,9
type="Arch Mage"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=17,10
type="Elvish Druid"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=19,10
type="Lich"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=17,11
type="Elvish Shyde"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=18,11
type="Arch Mage"
gender="female"
generate_description=yes
generate_name=yes
[/unit]
[/side]
@ -117,12 +117,12 @@ Xu , Xu , Qxu , Qxu , Ql , Ql
[unit]
x,y=12,13
type="Orcish Archer"
generate_description=yes
generate_name=yes
[/unit]
[unit]
x,y=10,7
type="Orcish Archer"
generate_description=yes
generate_name=yes
[/unit]
[/side]
[event]
@ -386,7 +386,7 @@ Xu , Xu , Qxu , Qxu , Ql , Ql
x,y="$xx1","$yy1"
type="Orcish Warlord"
id="Bozo"
generate_description=yes
generate_name=yes
[/unit]
[message]
@ -750,8 +750,7 @@ Xu , Xu , Qxu , Qxu , Ql , Ql
[terrain_mask]
x,y=20,1
mask="
usage=mask
mask="usage=mask
_s, _s, _s, _s, Aa, Aa, _s, _s, _s, _s
_s, _s, _s, Aa, Aa, Aa, Aa, _s, _s, _s
@ -807,8 +806,7 @@ _s, _s, _s, _s, Aa, Aa, _s, _s, _s, _s
[terrain_mask]
x,y=8,11
mask="
usage=mask
mask="usage=mask
^Ft, ^Ft, ^Ft, ^Ft
^Ft, ^Ft, ^Ft, ^Ft
@ -847,8 +845,7 @@ usage=mask
[terrain_mask]
x,y=8,11
mask="
usage=mask
mask="usage=mask
Ww, Ww, Ww, Ww
Ww, Ww, Ww, Ww