test cases for previous revision (patch by brilliand)

This commit is contained in:
Anonymissimus 2012-03-27 19:51:54 +00:00
parent aa2a083fa3
commit bf700f45bc

View file

@ -360,6 +360,141 @@ When this attack hits a living unit, the user is healed for 20 HP."
[/unit]
[/side]
[label]
x,y=14,10
text=_"Vision Test"
[/label]
[event]
name=moveto
first_time_only=no
[filter]
x,y=14,10
[/filter]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"Checking visibility of (8,15)..."
[/message]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
respect_fog=no
[/filter_vision]
[/have_location]
[then]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
respect_fog=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"HORRORS FILTERS ARE ALL TRUE!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"You can see it, can't you?"
[/message]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
[/filter_vision]
[/have_location]
[then]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"HORRORS FILTERS ARE ALL TRUE!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"Clear sailing!"
[/message]
[/else]
[/if]
[/then]
[else]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"But the fog, it blinds you!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"HORRORS FILTERS ARE ALL FALSE!"
[/message]
[/else]
[/if]
[/else]
[/if]
[/else]
[/if]
[/then]
[else]
[if]
[have_location]
x,y=8,15
[filter_vision]
side=1
visible=no
[/filter_vision]
[/have_location]
[then]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"It is invisible!"
[/message]
[/then]
[else]
[message]
speaker=narrator
icon=wesnoth-icon.png
message=_"HORRORS FILTERS ARE ALL FALSE!"
[/message]
[/else]
[/if]
[/else]
[/if]
[/event]
[event]
name=attack
[filter]