77567 Commits

Author SHA1 Message Date
Charles Dang
cb4979ac0c GUI2: passed builder_grid reference directly to container_base::init_grid and window::finalize 2020-12-03 17:21:18 +11:00
Charles Dang
e8b72f2d2d Fixup fd2662b 2020-12-03 14:48:19 +11:00
Charles Dang
826947c4c9 GUI2/Multi Page: marked set_page_builders private 2020-12-03 14:48:01 +11:00
Charles Dang
fd2662bea6 Removed boost::intrusive_ptr include (unnecessary as of 6d73033445bddbbcf597b648f3801634add695ec) 2020-12-03 14:28:03 +11:00
Charles Dang
6aae355fcf Unit: used optional instead of unique_ptr where appropriate 2020-12-03 13:19:48 +11:00
mattsc
bf3cdeb179 AToTB S2: fix AI bug when Muff Toras has no move
This was caused by a change in the return value of ai_helper.find_best_move() when no move is found.

Fixes #5316
2020-12-02 17:35:26 -08:00
Severin Glöckner
a7320744d0 NR S2: weaken fallback events
One of them seems to be triggered occasionally
2020-12-03 01:18:41 +01:00
loonycyborg
d8e9588be7 Make ssh agent work for scons+distcc+ssh 2020-12-02 23:46:12 +03:00
Severin Glöckner
7c4ce9dd0f NR: remove unused images
belonged to the alternative story branch
2020-12-02 16:19:48 +01:00
Severin Glöckner
d4e06c83e2 DiD: remove accidentally commited file 2020-12-02 16:15:04 +01:00
Severin Glöckner
db28a8657b DiD S9: increase health
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
2020-12-02 14:10:21 +01:00
Pentarctagon
c723dc14f0
Fixup vcpkg dependencies for playing audio. 2020-12-02 00:42:52 -06:00
Pentarctagon
11fac5ed2b
We don't use travis anymore. 2020-12-02 00:40:19 -06:00
Pentarctagon
fd29aa8503
Fixup vcpkg dependencies for locales. 2020-12-02 00:37:22 -06:00
Charles Dang
14d429072c Removed type_trait_aliases.hpp
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.
2020-12-02 14:56:08 +11:00
newfrenchy83
da224661c4 update scons codeblock projectfiles 2020-12-01 16:53:09 -06:00
newfrenchy83
0687196b4f Update tests.cbp 2020-12-01 16:53:09 -06:00
newfrenchy83
ea7a643951 update codeblock projectfiles 2020-12-01 16:53:09 -06:00
Charles Dang
c9d1fda443 Updated VS projectfile 2020-12-02 08:18:49 +11:00
Charles Dang
cb537f781b
Converted uses of boost::optional to utils::optional (#5329) 2020-12-02 08:16:05 +11:00
Charles Dang
ffde778f10
Refactored use of boost::mpl out of lexical_caster (#5330) 2020-12-02 08:13:21 +11:00
Charles Dang
4f0e8e1e5b Marked open_object_is_supported constexpr 2020-12-02 01:03:34 +11:00
Charles Dang
baa1a87a8a Cleaned up excessive indentation and newlines in the AI code 2020-12-02 01:02:24 +11:00
Pentarctagon
62aa0b252f
Run wmlindent. 2020-11-30 16:10:28 -06:00
Celtic Minstrel
9c102a64c6
Fix OBJECTIVE_FOOTNOTE 2020-11-30 13:41:09 -05:00
Severin Glöckner
0996a95c48 DiD S9: small fixes
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
2020-11-30 03:32:04 +01:00
Severin Glöckner
e0b39e5dd2 DiD S9: simplify terrain matching codes
Uu^* matches Uu too
2020-11-30 03:32:00 +01:00
Steve Cotton
72863e578b Add a unit test for resistances (using the standard 6 damage types)
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.
2020-11-29 22:30:14 +01:00
doofus-01
771e9b96ac
Update changelog.md 2020-11-29 13:28:14 -08:00
doofus-01
77e465490d
units - undead variation for sea serpent(ish) units (#5323)
* units - serpent walking corpse

* units - WC and Soulless serpent

* adding zombie serpent portrait

* units - set undead_variation to serpent for croc and serpents
2020-11-29 13:26:51 -08:00
Celtic Minstrel
ef14581956 Remove make targets for the old and obsolete wmlvalidator
This validator was already removed in another commit, so there's no point in these targets existing.
2020-11-29 12:53:54 -05:00
Celtic Minstrel
212b4fc3d1 Put back the documentation comments removed in 0e800d36a6b57ad28d5e2a1d46c3181bb92b597c
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.
2020-11-29 12:44:31 -05:00
Severin Glöckner
71b0a785e4 UtBS S9: Fix ship moving over Hills
Thanks to knightmare and konrad
2020-11-29 14:57:26 +01:00
Nils Kneuper
b512849f37 updated Russian translation 2020-11-29 14:42:45 +01:00
Nils Kneuper
d15c1d76d8 updated Polish translation 2020-11-29 12:45:20 +01:00
CrawlCycle
a6f36becb9 Test parsing of WML define and undef macros by the preprocessor & parser
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.
2020-11-28 14:52:48 -05:00
Severin Glöckner
883e71d523 NR S2: additional trigger field for door 2020-11-28 13:44:42 +01:00
Severin Glöckner
68d5e25ff7 NR S2_1: remove revealing hex
25,21 was visible from the other side of the wall.

This makes 25,21 part of the wall.
2020-11-27 21:26:21 +01:00
Whiskeyjack
e2d0833bbf NR S2_1: remove rails from castle hexes; fixes #5317 2020-11-27 13:37:35 -06:00
Pentarctagon
058bbf594f
Increase Boost minimum version for BOOST_DATA_TEST_CASE usage. 2020-11-27 13:03:42 -06:00
CrawlCycle
4e19bca6e8 Test config::add_child with parametrized tests
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.
2020-11-27 16:46:19 +01:00
Charles Dang
9a4963e9bb Merge branch 'master' of github.com:wesnoth/wesnoth into master 2020-11-27 18:01:52 +11:00
Charles Dang
2e69d99b7d MORE FIXUP 2020-11-27 18:01:24 +11:00
Pentarctagon
7567bb9d79
Run wmlindent. 2020-11-27 00:17:38 -06:00
Charles Dang
858d6feb34 Fixup even more 2020-11-27 17:01:36 +11:00
Charles Dang
686437c80d GAAH 2020-11-27 15:58:31 +11:00
Charles Dang
73cf92a1bb Celmin recommends consistency 2020-11-27 15:27:03 +11:00
Charles Dang
615d919a8d MVP 2020-11-27 15:25:42 +11:00
Charles Dang
e22865074c Fixup attempt 4 2020-11-27 15:19:57 +11:00
Charles Dang
3df8577f7b Fixup attempt 3 2020-11-27 14:33:50 +11:00