77541 Commits

Author SHA1 Message Date
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
doofus-01
ef15197b94
Update changelog.md 2020-11-26 19:23:54 -08:00
doofus-01
d6dbc2bb01
animal zombie variations (#5286)
* units - move SotA zombie rats to core

* units - hackish movement anim for zombie gryphons

* units/monsters - better choices from available undead_variations

* units - falcon zombie (no soulless yet)

* units - adding zombie falcon portrait

* units - adding soulless falcon

* units - adding gorer portrait

* units - slight adjustment to zombie falcon

* units - adding zombie rat portrait

* units - zombie tusker

* units - tusker soulless

* units - wire in new undead variations to falcon and tusker

* units - fix some sprite shadows in the zombie tuskers
2020-11-26 19:19:16 -08:00
Charles Dang
6097948e9b GUI2/Drop Down Menu: handle toggle callbacks using the event system
This fires a NOTIFIED_MOFIDIED event in the parent widget when the toggle state changes instead of manually
passing a callback in as a ctor parameter. The only widget which handled this was the multimenu_button, and
that did some stuff, then fired off a NOTIFY_MODIFIED event of its own. This change basically just installs
a handler of its own for the NOTIFY_MODIFIED event, which should still allow any other dialogs to add their
own handlers if necessary.

This also adds a second constructor that takes the parent widget and pulls the rectangle and markup settings
from it rather than having them passed in manually. The ctor that takes them is retained for the cases where
the menu needs to be manually invoked without a parent widget.
2020-11-27 14:07:06 +11:00
Charles Dang
cbb98cea26 Fixup attempt 2 2020-11-27 13:49:03 +11:00
Charles Dang
7b800082db Attempt to fixup 2020-11-27 12:41:33 +11:00
Charles Dang
074a32779c GUI2:Drop Down Menu: added a data struct for row members
This qualifies exactly what keys are accepted in the row configs.
2020-11-27 11:11:59 +11:00
Charles Dang
753590beb3 Fixup 2 2020-11-26 10:57:53 +11:00
Charles Dang
d543d3ce27 Fixup 2020-11-26 10:07:25 +11:00
Charles Dang
3d59888c7f GUI2: use CVideo::get_singleton() instead of window accessor 2020-11-26 08:30:53 +11:00
Charles Dang
2e3c3ec3e0 GUI2/Preferences Dialog: removed CVideo parameter from set_resolution_list 2020-11-26 08:26:49 +11:00
Charles Dang
0ff9f9be6d GUI2: finished cleaning up bound window references 2020-11-26 08:23:01 +11:00
Pentarctagon
3267f74445
Upload debug build artifacts 2020-11-25 12:25:02 -06:00
Steve Cotton
9b616e84de SotA S04: Run wmllint, which fixed some double-spaces in strings 2020-11-25 18:30:45 +01:00
Severin Glöckner
e07a9b9ac6 DiD S10: fix filter 2020-11-25 15:13:11 +01:00
Steve Cotton
f5394e19db SotA S10: Add some translation hints 2020-11-25 14:01:20 +01:00
Steve Cotton
e16c927a79 Revert "All hail std::tie", because it broke the MacOS build
This reverts commit 93f338013de544e0d05c4a59872179a199a09317.
2020-11-24 12:28:49 +01:00
Severin Glöckner
22e55bd0a0 German translation update for master
merging 1.14 and some master specific translations
2020-11-24 05:28:33 +01:00
Steve Cotton
47c9c60ea7 SotA: Fix some other translation hints
They need to be on the line above the string, instead of being a comment
following on the same line as the string.
2020-11-24 03:28:47 +01:00
Severin Glöckner
de4934bcd0 Sota: add translation hints 2020-11-24 02:31:13 +01:00
Charles Dang
93f338013d All hail std::tie 2020-11-24 09:29:54 +11:00
Charles Dang
a13ff2d9ae GUI2: marked a bunch of dialog member functions as const 2020-11-24 09:29:40 +11:00
Pentarctagon
2f3fd3eee0
Add windows jobs to github actions.
Move .travis.yml since all jobs have been moved to github actions.

Also remove caching from github actions for now since it doesn't work as expected.
2020-11-23 03:37:45 -06:00
Pentarctagon
11d961dc46
Give CI jobs better names. 2020-11-23 02:06:50 -06:00
Pentarctagon
d4b8f71771
Fix indentation. 2020-11-23 00:17:31 -06:00
Pentarctagon
0e800d36a6
Fix schema validation. 2020-11-22 23:54:12 -06:00
Charles Dang
cd78517df3 GUI2: even more work removing bound window references 2020-11-23 15:06:26 +11:00