Bats deal 3 damage.
Malin heals also 3 damage if he hits (unless the enemy has less than 6 health)
With 28 hp, Malin can take 9 more hits than he does,
compared to 6 previously on hard (and 8 previously on normal)
closes#5296
Most of what used to be in these files (the _t types) were removed once we switched to C++14.
These two value aliases aren't used, so no need to keep them around.
Some units can be cut of in the 2nd round. That's not a problem, but with a
good portion of bad luck it could happen to MKBones, making the scenario
unwinnable. That's handled by map adjustments.
Also increasing HP by 3 for the lich start, might even be more.
Discussion in #5296
I'm working on a bugfix for the [resistance_defaults] tag, for which the
unit test is going to be out-of-tree until we support some method of testing
it without affecting other tests. The version here is the part of that which
can be in-tree, because it doesn't change the core unit's stats.
* units - serpent walking corpse
* units - WC and Soulless serpent
* adding zombie serpent portrait
* units - set undead_variation to serpent for croc and serpents
This time they're added in the wrong place so as not to break the schema validation; they can be moved to the correct place later once that actually works.
This commit adds tools to test parsing of WML macros by the preprocessor
and parser. The commit also adds two tests of the #define and #undef
WML macro as examples.
The tests consist of three steps:
1. Define one WML string containing macros and one WML string
that lacks macros in each test. The two WML strings should be
equivalent after preprocessing.
2. Transform each WML string into a syntax tree (represented by config
objects) with the preprocessor and parser of Wesnoth.
3. Check if the two config objects are equal. Since the two WML strings
are equivalent, the two configs object should be equivalent if the
preprocessor and parsers are both correct.
The output of the preprocessor is in an undocumented format. Therefore,
this commit does not test the preprocessor as an isolated unit.
This commit tests the three config::add_child in src/config.cpp.
The config::add_child are among the most popular methods and
have at least 150 usages.
Notably, this commit adds a parametrized test through the
BOOST_DATA_TEST_CASE macro provided by boost/test/data/
test_case.hpp. None of the existing tests is parametrized.
Boost 1.58 and below do not support parametrized tests.
Ubuntu 16.04 ships with Boost 1.58 and reaches end of life on
April 2021.
This commit also formats the names of the tests as
method_name_StateOfThis_allArguments_AllExpectedBehaviors.