correction to testing
This commit is contained in:
parent
0deb6dcce2
commit
a202146b89
1 changed files with 13 additions and 38 deletions
|
@ -1,5 +1,4 @@
|
|||
# This unit test is used for verify the work of abilities used like weapons, but also of special_id_active attribute.
|
||||
# Here, the teacher and student are the same unit
|
||||
# This unit test is used for verify what 'add' and 'sub' attributes work in [leadership] abilities
|
||||
{GENERIC_UNIT_TEST "test_add_in_leadership_abilities" (
|
||||
[event]
|
||||
name=start
|
||||
|
@ -28,7 +27,6 @@
|
|||
value=60
|
||||
[/damage]
|
||||
[chance_to_hit]
|
||||
id=test_cth
|
||||
value=100
|
||||
[/chance_to_hit]
|
||||
[/abilities]
|
||||
|
@ -37,34 +35,25 @@
|
|||
id=alice
|
||||
[/filter]
|
||||
[/object]
|
||||
# Place Alice for fighting
|
||||
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=alice
|
||||
[/filter]
|
||||
variable=a
|
||||
kill=yes
|
||||
[/store_unit]
|
||||
# Move Alice next to Bob
|
||||
[move_unit]
|
||||
id=alice
|
||||
to_location=2
|
||||
[/move_unit]
|
||||
# Fight
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=bob
|
||||
[/filter]
|
||||
variable=b
|
||||
[/store_unit]
|
||||
[unstore_unit]
|
||||
variable=a
|
||||
find_vacant=yes
|
||||
x,y=$b.x,$b.y
|
||||
[/unstore_unit]
|
||||
# Fight
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=alice
|
||||
[/filter]
|
||||
variable=a
|
||||
[/store_unit]
|
||||
|
||||
[do_command]
|
||||
[attack]
|
||||
weapon=0
|
||||
|
@ -88,8 +77,6 @@
|
|||
{SUCCEED}
|
||||
[/event]
|
||||
)}
|
||||
# wmlindent: opener "{GENERIC_UNIT_TEST "
|
||||
# wmlindent: closer ")}"
|
||||
|
||||
{GENERIC_UNIT_TEST "test_sub_in_leadership_abilities" (
|
||||
[event]
|
||||
|
@ -128,34 +115,24 @@
|
|||
[/filter]
|
||||
[/object]
|
||||
|
||||
# Place Alice for fighting
|
||||
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=alice
|
||||
[/filter]
|
||||
variable=a
|
||||
kill=yes
|
||||
[/store_unit]
|
||||
# Move Alice next to Bob
|
||||
[move_unit]
|
||||
id=alice
|
||||
to_location=2
|
||||
[/move_unit]
|
||||
# Fight
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=bob
|
||||
[/filter]
|
||||
variable=b
|
||||
[/store_unit]
|
||||
[unstore_unit]
|
||||
variable=a
|
||||
find_vacant=yes
|
||||
x,y=$b.x,$b.y
|
||||
[/unstore_unit]
|
||||
# Fight
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=alice
|
||||
[/filter]
|
||||
variable=a
|
||||
[/store_unit]
|
||||
|
||||
[do_command]
|
||||
[attack]
|
||||
weapon=0
|
||||
|
@ -179,5 +156,3 @@
|
|||
{SUCCEED}
|
||||
[/event]
|
||||
)}
|
||||
# wmlindent: opener "{GENERIC_UNIT_TEST "
|
||||
# wmlindent: closer ")}"
|
||||
|
|
Loading…
Add table
Reference in a new issue