Commit graph

29603 commits

Author SHA1 Message Date
alberic89
2cb0d97696
wesnoth_addon_manager: require at least TLS v1.2 (#7591) 2023-05-06 00:12:17 +02:00
Slayer95
1ce11239ed
wmlunits: Fixup for fa76e77 (#7595)
Added missing colons to with statements
2023-05-05 23:55:40 +02:00
Slayer95
5eaed1b744
wmlunits: Specify error as class in html reports (#7581) 2023-05-05 21:05:09 +02:00
Slayer95
fa76e775ac
wmlunits: Handle code paths for missing attributes (#7580) 2023-05-05 18:45:12 +02:00
Celtic Minstrel
5c3bdd9e07 Fix errors in zombie recruit dialog 2023-05-02 21:04:41 -04:00
Celtic Minstrel
497e6b7ca6 pick_advance whitespace 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3ba31d532f Add new schemas to validate fonts.cfg and language.cfg 2023-05-02 21:04:41 -04:00
Celtic Minstrel
db0ee9f02c pick_advance: Load dialog from separate file so it can be validated 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3cfe0c338d Minor improvement to the schema validation script 2023-05-02 21:04:41 -04:00
Celtic Minstrel
5a1491a6ae Split up the GUI2 schema into multiple files.
The motivation for this is to reuse parts of it for another schema.
2023-05-02 21:04:41 -04:00
Slayer95
2413e2f366
Improvements to wmltools3 (#7561)
* wmltools3: Make the CrossRef class iterable

Removes generator() method.

* wmltools3: Check for warn level on lack of wmlscope: set export

* wmltools3: Support passing a list of file paths to initialize CrossRef

* wmltools3: Track lineno_end for Reference

* wmltools3: Track default values for macro optional parameters

optional_args is no longer a list, but a dict.

* wmltools3: Track macro bodies as Reference.body

* wmltools3: Register quoted macro arguments verbatim

* wmltools3: Improve parse_macroref

- Support parsing nested macro calls.
- Remove excessive need of parens around macro calls/arguments.
- Support escaping quotes.
- Other compliance improvements.
2023-05-01 17:08:30 +02:00
doofus-01
b4471f3a11
Various terrain graphics fixes (#7576)
* improve elevation filtering for disabling ice terrain, fixes #7301

* Fix some wall/bridge/chasm layering. Mostly fixes #7302
2023-04-30 12:39:02 -07:00
Celtic Minstrel
3c4c1c27f8 Add achievements to the in-game menu 2023-04-29 18:14:19 -04:00
Steve Cotton
38014a2a1f Test the correct unit in swarms_effects_not_checkable
The test spawns a new unit, this commit makes it test that new unit instead
of the Elvish Archer with a 5x2 melee attack.
2023-04-26 16:34:29 +02:00
Slayer95
de6f37f75f
Add gender-specific names for units with random traits (#7546)
Support (fe)male_name key in unit.

Support FEMALE_NAME in macros for named units with random gender.

Add female variants to generic unit names in DiD, TSG and UtBS.
2023-04-24 23:01:14 +02:00
doofus-01
e000d1de3f
make engine-bobbing sprites use the correct primary frame (#7562) 2023-04-23 20:53:27 -07:00
Pentarctagon
a45ca3f771 1.17.16+dev 2023-04-22 22:35:35 -05:00
Pentarctagon
9909f5910d 1.17.16 2023-04-22 22:34:20 -05:00
Pentarctagon
0001eee8d1 pot-update and regenerate doc files 2023-04-22 22:30:38 -05:00
Miguel Magno
5e1d9ba600
Fix modify_unit recall_cost indexing issue
Fix issue #7159 apply_to recall_cost to use 0 based side index instead of 1 based side

Add test for issue #7159 modify_unit recall_cost
2023-04-21 13:32:02 +02:00
nemaara
052665ebe0 Liberty S7: change a line 2023-04-20 09:57:06 -07:00
Steve Cotton
e5b4f5f8a3 More unit tests for attack_filter
Add `first_time_only=no` to some existing tests, and verify that events that
should only trigger once do trigger exactly once.

A new test of `[filter_attack]` when an event lacks attack data. In testing,
I found that it used to trigger a warning that I thought was useless code, and
had removed during 88439d6427a81a6b131acd8b0f7bf04b2d981d71's review. I think
removing it is still good, at the time that the filter was checked it would have
warned "attempt to filter attack for an event with no attack data."
2023-04-19 01:17:06 +02:00
Slayer95
6aa76de832 HttT: Restore context information for Haralandum's name (Ancient Wose)
4eb7fccaa0 made this comment a ``po-override`` without given justification.
2023-04-18 20:42:28 +02:00
Steve Cotton
eb12a752f4 Add a test for attack_filter with melee-only vs ranged-only units
A new test of what happens when a unit with only a ranged weapon fights a
unit with only a melee weapon. This commit is just the test, it depends on
the engine fix in a previous commit.

This only tests the filtering so far. There should probably be another
additional test to check what the combat results are, however that would need
an ability such as the Deep Elves' Stardust that passively affects the amount
of damage taken. It can't be tested with Slows, as that needs the defender to
hit with a weapon first.
2023-04-18 17:29:49 +02:00
Pentarctagon
1b90c770e6 whitespace 2023-04-16 19:49:49 -05:00
nemaara
59cb5939c5
Merge pull request #7518 from nemaara/liberty-achievements
Add achievements to Liberty
2023-04-16 19:38:58 -04:00
nemaara
5852821230
Merge pull request #7515 from nemaara/did-achievements
Add achievements to DiD
2023-04-16 19:38:05 -04:00
Pentarctagon
d67ab41a39 1.17.15+dev 2023-04-15 20:04:03 -05:00
Pentarctagon
f27b4f1bfc 1.17.15 2023-04-15 20:03:24 -05:00
Pentarctagon
fc7ec5bec5 pot-update and regenerate doc files 2023-04-15 20:01:53 -05:00
Severin Glöckner
c12f22334e new credit entry 2023-04-15 20:56:39 +02:00
Severin Glöckner
90df947efe stun: chaneg textdomain
other abilities are in wesnoth-help
the dirdctory containing the files is searched for wesnoth-help
2023-04-15 02:40:17 +02:00
Severin Glöckner
1bedcf8bfe change textdomain & image path of mainline merfolk units 2023-04-13 06:10:28 +02:00
nemaara
cdac40a797 Liberty: add achievements 2023-04-12 12:50:09 -07:00
nemaara
9393dc9109 DiD: add achievements 2023-04-12 12:48:24 -07:00
nemaara
4a5f38c575 DiD: move Darken Volk return to side 1 to victory event 2023-04-12 12:48:24 -07:00
newfrenchy83
88439d6427
Fix a bug in [event][filter_attack] when trying to use special_id/type_active to detect a special whose activity is conditional. (#7509)
When we try to trigger an event conditioned by the use of a special whose activity is subject to a condition, we cannot use special_active because the specials are always considered inactive. Additionally, abilities used as weapons possessed or taught by a leadership are also not detectable in [event][filter_attack]. This PR is there to remedy this double problem.

Also remove matches_special_filter and directly use matches_filter.
2023-04-11 19:34:28 +02:00
nemaara
50fbee1556 Liberty S4: make enemies nameless 2023-04-10 21:31:44 -07:00
Tahsin Jahin Khalid
13750eebc5
Units/Nibbler: set resistances to be same as level ups (#7517)
Closes #7516
2023-04-10 13:45:35 +08:00
Wedge009
39deda9a04 Crop dragon unit images to fit the side-bar window. Resolves #7472. 2023-04-10 08:28:10 +07:00
nemaara
3c3e449732 DiD S11: add color adjust 2023-04-09 13:11:38 -07:00
nemaara
9e34c3c5ab Tutorial: fix achievement description 2023-04-09 12:41:25 -07:00
Elvish_Hunter
242a9874c8 wesnoth_addon_manager: removed unused --color switch 2023-04-07 22:03:56 +02:00
nemaara
c5467c1f4d Remove screen_fade from skip animations 2023-04-06 20:37:05 -07:00
Tahsin Jahin Khalid
cdc451c870 Units: Bone Knight gets submerged
Apparently, Skeleton Rider has it and its advancement does not...what
2023-04-05 20:03:44 +08:00
Pentarctagon
e00be80394 Whitespace fixup. 2023-04-02 21:40:21 -05:00
gfgtdf
a71892e509 Fix bad allow_undo in UtbS
The event changed the gamestate by adding an event
that changes the gamestate. We now use variables to instead of
nested events events since that is easier to handle in
[on_undo], which allows us to use [allow_undo] here.
2023-04-03 03:26:10 +02:00
gfgtdf
9804935cad wc: mapgen: move total_tiles to scenario_data 2023-04-03 03:26:10 +02:00
gfgtdf
c75fa8b4cb wc: mapgen: move get_scenario_data to seperate function
it was just a one liner but a rather complicated one
2023-04-03 03:26:10 +02:00
gfgtdf
cf19f4f686 wc: mapgen: document set_terrain function 2023-04-03 03:26:10 +02:00