82783 Commits

Author SHA1 Message Date
Steve Cotton
c631345314 Update the copyright info for the Finnish help images
Move the previous addition of the UtBS blowgun into sort-by-filename order.

Correct copyright of orb-two-color.png, as it was based on orb.png.
2023-12-16 15:51:43 +01:00
Nils Kneuper
0157c245ea updated French translation 2023-12-16 13:24:21 +01:00
Nils Kneuper
444a3ea007 updated Finnish translation 2023-12-16 11:13:16 +01:00
Nils Kneuper
90ba0efaa9 updated Polish translation (incl. credits) 2023-12-16 11:09:33 +01:00
Nils Kneuper
541c746925 updated Slovak translation 2023-12-16 10:58:42 +01:00
Nils Kneuper
191d54d7fe updated Bulgarian translation 2023-12-16 10:56:26 +01:00
gfgtdf
955a8bc445
use game_events.add in on_event.lua (#8082)
use game_events.add in on_event.lua

previously on_event.lua and game_events.add had separate priority lists, so that independent of the priority parameter (which both game_events.add and on_event.lua now support) on_event.lua events were always executed first. 

The set_undoable(true) call is there to match the previous behavior of on_event.lua where events implemented via on_event were undoable by default.
The higher default priority of 0.5 is there to match the previous behavior of on_event.lua where events implemented via on_event.lua were always run before wml events.
2023-12-15 21:28:45 +01:00
gfgtdf
0abed71f75
fix #8115 segmentation fault on attack event (berserker) (#8116) 2023-12-15 21:08:16 +01:00
Pentarctagon
6322ca8bc8
add a bunch of resistance ability tests (#8105) 2023-12-15 09:59:01 -06:00
newfrenchy83
f5c6402ed1 Fix [resistance] without max_value bug
Fix https://github.com/wesnoth/wesnoth/issues/8092 issue.

If none [resistance] ability of the list contain max_value, then [resistance] must work without max_value defined by default.
2023-12-14 17:12:44 -06:00
Subhraman Sarkar
f1f67ae5df
Add functionality to Time Schedule Editor (#8066)
selected schedule will write to utils/schedule.cfg on scenario save

HOTKEY_EDITOR_CUSTOM_TODS is disabled unless user loads scenario

custom_tod:Preview button and associated callback added.

editor:translatable attributes now written with leading underscore

editor:support for multiple custom time schedules
2023-12-14 17:12:07 -06:00
Rafael Fillipe Silva
98e292681b Add tests for log domain severity override changes 2023-12-14 21:56:56 +01:00
Rafael Fillipe Silva
2498e92fc7 Allow specifying log levels and domains multiple times
Fixes #2919.

The severities would always override the previous one, in this order: error < warning < info < debug < none.

This commit changes this behavior so the directives are applied in the order they appear in the command line. Additionally, it is now possible to specify the same log severity multiple times.
2023-12-14 21:56:56 +01:00
gfgtdf
b9100de539
Update changelog.md 2023-12-14 19:28:29 +01:00
gfgtdf
99399a2b26 allow units.remove_modifications to remove multiple types
previously it needed multiple calls to remove multiple types of modifications (which could be slow since each call involves a full rebuild of the unit).
2023-12-13 17:01:28 +01:00
gfgtdf
be8aa13aa0 fix invalid mp addon version info 2023-12-13 17:01:28 +01:00
gfgtdf
4db888ce28 add comment 2023-12-13 17:01:28 +01:00
gfgtdf
9f51db3e47 luaapi: Fix assertion error on invalid callback
previousl this would assert in luaW_callwidgetcallback
2023-12-13 17:01:28 +01:00
gfgtdf
81145470c3 wc: fix a comment 2023-12-13 17:01:28 +01:00
gfgtdf
294e9a8d5c wc: small mapgen refactor
It doesn't really make sense that the code sometimes uses the lua variable enemy_power and sometimes
the wml variable. I think the original intent was to make it always use the lua variable but then it was noticed that the lua varialbe is not available in the first scenario
2023-12-13 17:01:28 +01:00
gfgtdf
ec0457790c wc: remove unused parameter 2023-12-13 17:01:28 +01:00
gfgtdf
9f66b1e8ff Don't assert on config input.
assert() is not a good way to handle incorrect user input,
It is a debugging tool that should only be used for
conditions that the program guarantees to be true
(unless there a is a bug in the c++ code).
2023-12-13 17:01:28 +01:00
Steve Cotton
8d2d58d6ec Avoid using double-quote as a C++ raw string delimiter-char
This avoids warnings from xgettext, which considers `R"""..."""` to be
sufficiently unusual that it doesn't have support for it. This version
uses an empty d-char-sequence, as the only string which needed a longer
delimiter was removed in 10997c39a3d559d699143f67e9ede7947e2193b3.
2023-12-13 11:15:57 +01:00
Gunter Labes
ff8d4d063f Use index 0 when current theme is not found
Trying to open the preferences dialog when a theme from an addon was selected that is not currently in use asserts in menu_button::set_values.
2023-12-11 13:05:10 +01:00
pentarctagon
7c219ab9a4 fixup 2023-12-10 22:08:49 -06:00
pentarctagon
1c814e47d5 copyrights update 2023-12-10 22:07:17 -06:00
Rafael Fillipe Silva
83cd8591f4 Add clangd cache directory to gitignore 2023-12-10 22:03:18 -06:00
doofus-01
b167c8db8c
1.17/1.18 - UtBS blowgun icon (#8067)
* update and rename blowgun attack icon to avoid core image cash (fixes #7907)
2023-12-10 19:22:12 -08:00
doofus-01
c5c92c2afd
1.18 - Sprite updates to Ravens and Ants (#8089)
* fix raven SE sprite wings

* revisions to fire ant sprites to make more distinct from each other

* fix flame positioning

* minor soldier ant sprite update

* add IPF arg to MISSILE_FRAME_FIRE_BREATH for use in fire ants

* update copyrights.csv
2023-12-10 18:28:08 -08:00
Steve Cotton
30b91ad902 EI S04b: Avoid using a macro in a translatable string
The required number is already in a WML variable, herbs_needed. However, the
string is used in an `[objective]` tag, which means we're not necessarily in
an ActionWML block when it's shown, and thus can't use the Lua API to look up
plural strings. Instead, brute force it by making 6 separate strings.

Also, use the mainline `ALTERNATIVE_OBJECTIVE_CAPTION` macro instead
of a campaign-specific translatable string.
2023-12-10 22:53:14 +01:00
Steve Cotton
29d21434c1 EI S04b: use en_US spelling for the scenario id
* S04b start-of-scenario saves since 1.17.21 will be broken
* S03 mid-scenario saves since 1.17.21 will show a warning,
  and players will only be able to go west
* Saves from earlier versions are already broken by the campaign rewrite
2023-12-10 22:53:14 +01:00
Steve Cotton
b63a5025e8 Fix the textdomain for the regeneration unit tests
The msgid "test-regenerate" was leaking into wesnoth.pot,
this was seen when running a pot-update locally.
2023-12-10 03:10:10 +01:00
Steve Cotton
68be339720 updated German translation 2023-12-09 15:00:16 +01:00
Steve Cotton
8977c1e60d Labeler: use a separate tag for each campaign 2023-12-08 15:16:43 +01:00
zBugH1
d22b70eda8 lg::severity Enum refactoring
Refactored all relevant code to use lg::severity Enum instead of int type
2023-12-08 13:55:51 +01:00
gfgtdf
a320377fed
Fix lobby showing wrong info
The condition was accidentaly inverted during a refactor.
2023-12-08 04:28:38 +01:00
pentarctagon
16ccaefc86 Test multiplying by a fractional value. 2023-12-07 00:07:33 -06:00
gfgtdf
da936425dc Fix #8090 : end credits not showing when a scenario has no [side]s 2023-12-06 23:06:16 +01:00
Pentarctagon
0ec7048a02
add a bunch of regenerate tests (#8079)
mostly the same as the heals tests, since they're basically the same ability with different defaults.
2023-12-05 23:15:26 -06:00
Jonathan-Kelly
978cf98c18 WoF: fix macro argument in translatable string 2023-12-05 13:37:54 +01:00
Gunter Labes
5cb60d7f2f
Fix description and formatting 2023-12-05 13:34:43 +01:00
Gunter Labes
2423b2321d
Update to new config file format 2023-12-05 10:38:11 +01:00
Jonathan-Kelly
d41a2f986e WoF S6: weaken player allies 2023-12-04 11:05:51 -06:00
Gunter Labes
b4cba2a43e
Clarify path argument description 2023-12-04 16:31:45 +01:00
Steve Cotton
85a3f8a2df Preprocessor: allow wesnoth --preprocess to work on files without the .cfg extension
The changed function is only called when using --preprocess, but calls itself
recursively. This moves the filename filter to be around the recursive call,
thus skipping the check for the top-level call.
2023-12-01 17:05:10 +01:00
zBugH1
d81a15ed33 Adaptive drag threshold
Changes the drag threshold from 14 to be based on window resolution. Scaling is performed so that a 1080p window has the original threshold of 14.
2023-12-01 15:29:50 +01:00
Pentarctagon
87ed0d0339
Add a bunch of tests for heals. (#8074)
Covers only attributes, not filters.
2023-11-30 11:09:52 +01:00
pentarctagon
86645b44ab and back to 23.08. 2023-11-29 21:20:30 -06:00
loonycyborg
e8321748ed
Install both 22.08 and 23.08 in flatpak runtime 2023-11-29 00:44:07 +03:00
Gunter Labes
1d0638b048
Use a single dot for the extension 2023-11-28 13:40:13 +01:00