84622 Commits

Author SHA1 Message Date
ZombieKnight
9b0430e1f7 Update message.lua 2024-12-20 20:57:48 -05:00
Thewodoros
19be417a05
EI: forbid dunefolk from taking the Plague Staff and add custom rejection messages (#9654)
Fixes #9627
2024-12-20 07:56:53 -06:00
Wedge009
6d10d919d5 Correct manual directory broken in #9664. 2024-12-20 18:26:51 +11:00
Wedge009
e8a3e3fcef View Manual: Avoid crash from indexing an empty vector. Resolves #9661.
Empty vector occurs when using System Language.
2024-12-20 08:34:21 +05:30
pentarctagon
8210f33a7b add preference to not get addon icons
also skip if DataURI is too large
2024-12-19 11:54:14 -06:00
pentarctagon
352157d593 remove inaccurate changelog entry 2024-12-19 09:31:35 -06:00
Gothyoba
10364b169b
Increase Fire Resistances of the Fire Guardian Line (#9438)
* Fire Wisps and Guardian - Fire Resistance changed from 50% to 70%
  * Fire Wraith - Fire Resistance changed from 50% to 80%
2024-12-19 09:24:41 -06:00
Charles Dang
a6954bd56e Prefs: reduce excessive indent (no content changes) 2024-12-19 00:35:18 -05:00
Charles Dang
6a18a37afe Prefs: advance preference access should not be mutable 2024-12-19 00:18:32 -05:00
Severin Glöckner
d191109bb4 German translation edits 2024-12-19 03:49:23 +01:00
Wuzzy
0c1357b594 German translation update
merges #9625
2024-12-19 02:19:20 +01:00
pentarctagon
f7dc6ebaeb 1.19.7+dev 2024-12-18 16:58:02 -06:00
pentarctagon
4a689a687d 1.19.7 1.19.7 2024-12-18 16:57:02 -06:00
pentarctagon
144fa9c71a pot-update and regenerate doc files 2024-12-18 16:55:39 -06:00
pentarctagon
f5ab5620e2 changelog_entries 2024-12-18 16:49:30 -06:00
gfgtdf
5e5fc1db5d remove [side] leader=
previously the leader= attribute in [side] could be used to
make the engine choose a faction by its leader, similar to how
[side]faction_from_recruit worked.

However this was not documented in the wiki, and the name clash
with the [side][leader] subtag could also cause problems
and is also a litte confusing.

So it was decided to remove it. an alternative approach to fix the
name clash would be to rename it, but i can't think of
real usecases of this feature currently.
2024-12-18 18:48:41 +01:00
Charles Dang
2be41a4f85 GUI2/Listbox: remove any_rows_shown
Instead, return the number of rows shown from filter_rows_by. We might re-add any_rows_shown in the future, but for now this covers the intended usecase.
2024-12-18 02:45:26 -05:00
Charles Dang
edb4331d56 GUI2: use more nested namespaces 2024-12-18 02:44:28 -05:00
Charles Dang
e037694945
GUI2: simplify various dialog's filter handling (#9650)
Closes #7868. This implements a farther-reaching cleanup without the regex, though I might revisit the regex method again later.
2024-12-18 02:01:05 -05:00
gfgtdf
f113b2b7a7 Fix #9651 Error in u:extract()
This logic seems inverted, this probably happened while the lua attributes were converted to use the LATTR_SETTER macros.
2024-12-16 19:10:53 -05:00
gfgtdf
e64283534f wesnothd: update current turn in init_side instead of end_turn
This matches the behavior on the client where the events that
happen after end_turn (the "turn end" wml events) happen during
the last sides turn not the next sides turn. In particular this
fixes #2563. It also fixes #3899 because the new logic
automaticially skips empty sides already in init_side and not on
end_turn.

It also changes how description is updated, since carrying that
return value arround specifying whether it was updated was becoming
annoying.

With a few code improvements from soliton.
2024-12-16 00:20:40 +01:00
gfgtdf
f2bcc997b8 add simple_wml child_or_add() 2024-12-16 00:20:40 +01:00
Bernhard Rosenkränzer
782ab2df3e Fix build with boost >= 1.87.0
Boost 1.87.0 removes some functions that have been deprecated for a few
releases, but are still used in wesnoth.
2024-12-15 16:29:11 +11:00
gfgtdf
79798b9f2b remove unused cpp file 2024-12-15 05:24:12 +01:00
gfgtdf
c1c0111d3c WC: New carryover implementation.
We now use a modified default carryover calculation,
the main advantage is it now uses the normal carryover
message on endlevel, and shows how it is calculated.
2024-12-15 05:17:57 +01:00
gfgtdf
06d1fade32 split gold_carryover into smaller functions
this way the functions can easily be reused for alternative
carryover implementations.
2024-12-15 05:17:57 +01:00
gfgtdf
f29f8fb368 move the carryover gold handling and dialog to lua
The idea is to make it easier for umc devs to implement
their own carryover / early finish bonus mechanics. Maybe
we can also make use of it in Worls Conquest.
2024-12-15 05:17:57 +01:00
pentarctagon
893b31e769 return pbl author attribute to its original usage
and use the new primary_authors attribute instead

Fixes #9547
2024-12-14 18:49:32 -06:00
gfgtdf
e8af57e3ab remove some unneeded catch { ... }
these catch were once added to put a send_data() there
now they are no longer needed.

Also calling saved_game_.clear(); is not needed there either.
2024-12-15 00:51:29 +01:00
gfgtdf
f3c48ab8ce luaapi: fix wesnoth.current.user_is_replaying 2024-12-14 23:30:16 +01:00
gfgtdf
a7d3db9cf7 Fix source_lists order 2024-12-14 23:07:10 +01:00
gfgtdf
bf4ad3bb42 WC: fix campaign abbrev
previously it was unclear what the trailing number meant,
also the order couldn't be changed in the translation.

Also the player number was shown 2 times in the savefile name,
resulting in names like 'WC1-WCII 1 -Start-Auto-Save.gz' so i
removed it from the scenario name.
2024-12-14 22:53:12 +01:00
gfgtdf
c762c01924
Add -r option to add_source_file fix #8733 (#9033) 2024-12-14 22:39:12 +01:00
gfgtdf
4fb36d5e08 luaapi: add wesnoth.current.user_is_replaying
This returns true when the user is currently replaying the scenario
This not only includes the classic 'replay safefiles' but for
example also the 'replay turn' feature (field name suggested by celmin)
2024-12-14 02:29:29 +01:00
gfgtdf
68f6c984e7 luaapi: add team.carryover_gold
Not really usuable yet since the game engine overwrites it at game end,
Part of the 'move the carryover gold handling to lua' patch
2024-12-14 02:22:11 +01:00
Nils Kneuper
70361db1bd updated Italian translation 2024-12-14 00:36:45 +01:00
Nils Kneuper
91efe14fba update Czech translation 2024-12-14 00:35:25 +01:00
Nils Kneuper
8b77417425 updated Hungarian translation 2024-12-13 13:12:16 +01:00
Charles Dang
425eca473f Win Toasts: remove fallback macro defines 2024-12-12 20:35:51 -05:00
Charles Dang
2066456654 Target Windows 10 2024-12-12 20:35:51 -05:00
Subhraman Sarkar
2debd74605 unit preview pane: use overloaded functions to set data 2024-12-12 09:47:47 -05:00
gfgtdf
2dcfe2435c deploy use of std::string_view 2024-12-12 03:12:38 +01:00
gfgtdf
e28217b213 Add utils::stod/stoi
There are drop in replacements for std::stod/stoi, the differences are:
- They are locale independent
- The take string_view arguments.
2024-12-12 03:12:29 +01:00
gfgtdf
1bd64bd8aa fix utils::unescape 2024-12-12 03:12:26 +01:00
gfgtdf
e549b03412
DM: S20: Fix waittime at scenario start
Don't animate unit advancements during a prestart event.

It woudl be better it u:advance() would automaticialyl not waste time animating advancements that can't be seen (during prestart events) but for this scenario this is already an improvement
2024-12-11 19:48:57 +01:00
Pentarctagon
02304cd86f Avoid keeping player_iterator that might get invalidated before use 2024-12-10 09:29:21 -06:00
Charles Dang
66e94c9a6b GUI2/Widget: add convenience visibility setters 2024-12-10 09:28:21 -05:00
Charles Dang
c8df594a74 GUI2: remove screen_pitch_microns variable 2024-12-10 08:33:22 -05:00
Charles Dang
a4a8506dfa GUI2/Stacked Widget: remove handling of [stack]
Been deprecated for years
2024-12-10 06:58:55 -05:00
Charles Dang
028e16d39b GUI2: move multi_page and stacked_widget init to their constructors
Makes it consistent with the listbox handling in 10b640c0f259443353d474ee83d4490d3464ec79
2024-12-10 06:54:56 -05:00