wesnoth/data/test/units/test_unit_exclude.cfg
Steve Cotton 5f1d46513a Reindent unit tests and unit test macros
This doesn't cover all of the unit tests, it's the result of running wmlindent
on all of them and then reviewing whether the changes were bugs in the test, or
whether they're bugs in wmlindent.

Note: there are two cve_2018_1999023 tests. The other one needs to be treated
as a binary file, but the one changed here is plain text that loads its attack
from a separate file.

The change in start_position_generic.cfg doesn't seem good, but it's not
particularly bad and it's what wmlindent currently does.
2023-01-20 02:28:54 +01:00

57 lines
1.3 KiB
INI

#textdomain wesnoth-test
#define TRAIT_TEST_EXCLUDE
# Test for exclude trait
[trait]
id=test_exclude
male_name= _ "test_exclude"
female_name= _ "female^test_exclude"
help_text= _ "Test exclude"
exclude_traits=test_excluded,strong,quick,intelligent,resilient
[effect]
apply_to=hitpoints
increase_total=1
[/effect]
[/trait]
#enddef
#define TRAIT_TEST_EXCLUDED
# Test for require trait
[trait]
id=test_excluded
male_name= _ "test_excluded"
female_name= _ "female^test_excluded"
help_text= _ "Test excluded"
[effect]
apply_to=hitpoints
increase_total=1
[/effect]
[/trait]
#enddef
# This unit is used for testing the exclude traits functionality.
[unit_type]
id=Test Unit Exclude
name=_ "dummy_unit^Test Unit Exclude"
race=test
image="misc/blank-hex.png"
ignore_race_traits=yes
{TRAIT_TEST_EXCLUDE}
{TRAIT_TEST_EXCLUDED}
hitpoints=1
movement_type=fly
movement=1
experience=1
level=1
alignment=neutral
advances_to=null
cost=1
usage=scout
hide_help=yes
do_not_list=yes
[/unit_type]
#undef TRAIT_TEST_EXCLUDE
#undef TRAIT_TEST_EXCLUDED