81882 Commits

Author SHA1 Message Date
Pentarctagon
a22da2291b
Store side leader information in the database
Fixes #7267
Add new query for getting leader data.
2023-04-21 13:58:17 +02: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
Gunter Labes
031b4a70e4
Avoid descending into modules dir 2023-04-21 00:15:11 +02:00
Gunter Labes
06045142c2
Simplify workflow 2023-04-20 23:26:09 +02:00
Gunter Labes
2a0638120f
Run flatpak job directly on container 2023-04-20 22:38:53 +02:00
Gunter Labes
b5c850fe8f
Run translations job directly on container 2023-04-20 21:05:06 +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
newfrenchy83
97e6dc2865
fix ability used like weapon affect placeholder weapon used in defense when not attack of same range what attacker (#7539) 2023-04-18 15:19:36 +02:00
Pentarctagon
58fb4f1e87 Adjust how no game history results are handled 2023-04-17 09:21:39 -05: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
Steve Cotton
bb28f54e52 Stop removing manually-added labels on Github PRs
Setting sync-labels to "true" means that it removes labels which people
have added, but which aren't implied by the filelist.
2023-04-16 07:08:30 +02:00
Pentarctagon
d67ab41a39 1.17.15+dev 2023-04-15 20:04:03 -05:00
Pentarctagon
f27b4f1bfc 1.17.15 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
Nils Kneuper
3aa8df3d33 updated French translation 2023-04-15 13:02:19 +02:00
Pentarctagon
8e6df8cd1f Fix incorrect query for selecting new clients by download source.
The old query was:
* Selecting data from 2 months ago instead of 1 month ago for some reason, presumably left over from when I was testing the query out for different time periods.
* Counting non-new players who used a new download source as new players.
2023-04-14 22:32:48 -05:00
Severin Glöckner
f6b6e1e0c8 updated German translation 2023-04-15 03:15:40 +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
newfrenchy83
b4f93d4748 fix test of presence of attack/second_attacl in filter_attack function 2023-04-13 21:33:44 +02:00
Steve Cotton
e0e8af894e Fix -Wshorten-64-to-32: math.hpp
The last uses of this were removed in 0fbc12ea01986bc97ef6426e0edc89f12224a0d5.

The only uses of the other fixed-point functions from math.hpp are in
src/sdl/utils.cpp. That should probably move to using color.hpp instead,
but this commit is just to solve the -Wshorten-64-to-32 warning.
2023-04-13 13:55:11 +02:00
Eric Gallager
bad664f7e0
Try to fix map diff failure when terrain doesn't have an image associated with it 2023-04-13 10:41:38 +02:00
Severin Glöckner
ef9e289573 merge German translation 2023-04-13 07:34:24 +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
Wedge009
d13d3a2ad5 MP Match History: Replace get_rows() with get_item_count()
get_rows() retrieves the information from [row].
Resolves #7489.
2023-04-12 12:42:10 +10:00
Pentarctagon
61b37a746f Correctly handle no game history data existing.
Fixes #7489
2023-04-11 15:32:42 -05: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
Steve Cotton
e973cdb489 Temporarily disable Windows CI builds
It's better to disable them that to get in the habit of ignoring the CI fails
from the following two issues; this can be reverted once either is fixed.

glib has a bug where it builds things out of order which results in it failing
to build the dependencies, which fails the build.
https://github.com/microsoft/vcpkg/issues/28722

vcpkg also has a bug where it very often fails to use the cache of the
previously built dependencies even if none of them changed, which then makes it
rebuild all the dependencies again.
https://github.com/microsoft/vcpkg/issues/26601

If the glib bug was fixed, then the errors wouldn't happen since rebuilding the
dependencies wouldn't fail. If the caching bug was fixed, then the errors
wouldn't happen since it'd just reuse the cached dependencies.
2023-04-10 19:30:23 +02:00
Steve Cotton
29749b6af0 Add comments to display and display_context, silence 64-to-32 warnings
The static casts are for -Wshorten-64-to-32 warnings, it would take a
lot of work to fix this in a better way.
2023-04-10 10:47:46 +02:00
Charles Dang
b64e1dd9c6 Display: removed orphaned function declarations
These were refactored out in bef3d1092c1078ed93c7b46d7745e30a2ca15a00
2023-04-10 04:25:13 -04: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
Pentarctagon
08c6d0b30c Fix log rotation.
Previously it was checked whether the logs directory was writable, which needed to get the log directory, which needed to get the userdata directory, which causes the userdata paths to get initialized, which triggered log rotation. This resulted in rotation being triggered before the logging path was set, which resulted in it always being skipped. Now log rotation is done in the logger class after it has been checked whether the logs directory is writable or not.
2023-04-10 00:34:39 -05:00
Wedge009
39deda9a04 Crop dragon unit images to fit the side-bar window. Resolves #7472. 2023-04-10 08:28:10 +07:00
Charles Dang
b94d360886 Removed a stray '#' 2023-04-09 21:04:06 -04:00
Charles Dang
dbc980fc65 Made reports more const-y
Reports should never have side affects. If they do you're doing something wrong.
2023-04-09 21:03:36 -04: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
Pentarctagon
31e23d2d7e Fix -Wshorten-64-to-32: team.hpp
There's not that many hexes on a maximally-sized map, so it's a safe
assumption that this can cast to int.

Commit message by: Octalot
2023-04-08 14:29:29 +02:00
Nils Kneuper
b1cf5a3f27 updated Spanish translation 2023-04-08 12:09:10 +02:00
Nils Kneuper
9ffcacbdc6 updated Czech translation 2023-04-08 09:52:42 +02:00
Nils Kneuper
60798c5401 updated French translation 2023-04-08 09:51:26 +02:00