wesnoth/data/test/units/test_unit_require.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.2 KiB
INI

#textdomain wesnoth-test
#define TRAIT_TEST_REQUIRE
# Test for require trait
[trait]
id=test_require
male_name= _ "test_require"
female_name= _ "female^test_require"
help_text= _ "Test require"
require_traits=test_required
[effect]
apply_to=hitpoints
increase_total=1
[/effect]
[/trait]
#enddef
#define TRAIT_TEST_REQUIRED
# Test for require trait
[trait]
id=test_required
male_name= _ "test_required"
female_name= _ "female^test_required"
help_text= _ "Test required"
[effect]
apply_to=hitpoints
increase_total=1
[/effect]
[/trait]
#enddef
# This unit is used for testing the require traits functionality.
[unit_type]
id=Test Unit Require
name=_ "dummy_unit^Test Unit Require"
race=test
image="misc/blank-hex.png"
ignore_race_traits=yes
{TRAIT_TEST_REQUIRE}
{TRAIT_TEST_REQUIRED}
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_REQUIRE
#undef TRAIT_TEST_REQUIRED