Commit Graph

84921 Commits

Author SHA1 Message Date
Charles Dang
16830f8ab4 WFL: allow re-defining functions instead of silently failing
Closes #9908, fixes #9795. This change is #9908 done `insert_or_assign` instead of an emplace check. Credit to @Mahoyomu for the fix.
2025-03-02 10:16:53 -05:00
Charles Dang
55dc0a8215
GUI2: harden theme definition parsing (#9974)
- Ensure current_gui is a valid iterator after calling init(). It should match default_gui
- Ensure current_gui is always set to guis.end() if the requested theme isn't found in switch_theme().
  It's initialized as such in gui_definition.cpp, but we shouldn't rely on that always being the case,
  especially in a function that changes it.
- Only create one schema validator for all themes. Previously, it would have been created anew for
   each addon with a custom theme.
- Add explicit exception handling for an invalid schema path or invalid gui2 entry point
- Add explicit warning for addon themes with the id "default"
- Catch `wml_exception` when creating gui_definition objects for all themes (previously, this was only
   caught for add-on themes)
- Adjust error messages
- Fix duplicate theme errors when reloading cache (addresses one part of #9781). GUI2 definition
  changes now take effect without the need to restart the entire game. A cache reload is sufficient.
- Use `_main.cfg` for core theme entry points
- Include macros at global core GUI2 score instead of only in the default theme (they were always
  available to both themes, this just makes that clearer)
2025-03-02 00:12:32 -05:00
Charles Dang
e8c164d377 Fix schema whitespace 2025-03-01 11:41:21 -05:00
Gunter Labes
3db91fc0d2
Typo fix 2025-03-01 11:18:59 +01:00
Wedge009
b8ec44a77e EI S11: Improvement upon 7e461ae2f5.
[ci_skip]
2025-03-01 10:39:21 +11:00
Gothyoba
de6ef82420
Note that iOS/Android versions are currently unmaintained in readme (#9961)
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2025-02-28 08:59:04 +05:30
Dalas121
6234ef1453
Update Firebomb Ant and Grand Dragonfly XP (#9963)
Increase XP from 80 to 100, which is more standard for L2 units with no L3 advancement.
2025-02-27 08:30:26 -06:00
Yoruma
a0cad9b0c3 Squashed and Fix the unit teleport issue by moving code to mouse_event 2025-02-26 19:53:29 -06:00
Gunter Labes
7e461ae2f5
Typo fix 2025-02-26 23:56:43 +01:00
Gunter Labes
9aec16a801
Add map dimension info
Always generate a comment even if image upload failed and add API response for easier debugging.
2025-02-26 23:51:23 +01:00
Refumee
63409f7492
TDG: update Saurian Juvenile sprites (#9945)
Updating the sprites for the saurian juvenile in TDG, and added a bobbing standing animation. Colorset of the Saurians respects the ColorMap of the Saurians with some exceptions in the clothing.
2025-02-26 12:27:10 -06:00
Subhraman Sarkar
55c7b474b4 help: link base and overlay terrains in terrain help pages (#9456) 2025-02-26 00:58:38 -05:00
Wedge009
20c1692c8c Only attempt to load .cfg scenarios (closes #4363) 2025-02-26 13:51:00 +11:00
Subhraman Sarkar
59ede591f3
lua api: expose male/female names for races (#9955)
Resolves #9954
2025-02-25 09:01:10 -05:00
Gunter Labes
80f37cf62b
Remove obsolete define
See 5431810b62.
2025-02-25 13:53:16 +01:00
Gunter Labes
8e7947c6c8
Remove useless TODO comment 2025-02-25 13:23:19 +01:00
Dalas121
cfed9ef69e
TDG: remove silent raven speed reduction, and use TRAIT_SLOW instead
TDG gives Delfador access to a loyal raven/dire raven/war harbinger. Currently, the speed for this unit is capped at 6, to prevent it from being overly-powerful when compared with other options.

revolting_peasant pointed out that this speed cap makes the raven's stats inconsistent with the numbers in "view unit type". To resolve that, this PR replaces the speed cap with {TRAIT_SLOW}.
2025-02-24 16:24:59 -06:00
Charles Dang
0555ce3d08 Lua/Team: fix village_gold setter setting village_support (fixes #9952)
Typo originally part of cb1853b4bc
2025-02-24 17:10:45 -05:00
newfrenchy83
43c751971a add 'invulnerable' status for prevent unit die during tests 2025-02-24 10:44:41 -05:00
Charles Dang
9ef8c90767 Bump min Boost version to 1.70 2025-02-24 01:05:16 -05:00
Aardvark
fbe2166c33
World Conquest: Remove hard coded trainer indices (#9408)
---------

Co-authored-by: Richard <93877353+richardalbee@users.noreply.github.com>
2025-02-23 15:37:26 -06:00
Charles Dang
34595668b4 Fixup 98c21e1 (re-add theme check) 2025-02-23 15:44:29 -05:00
Charles Dang
1975ffdadc GUI2/Achievements: set max_width for title in label definition
Also some border tweaks
2025-02-23 15:04:20 -05:00
Charles Dang
75a47689ea GUI2/Achievements: code cleanup, use VGETTEXT 2025-02-23 15:03:32 -05:00
Charles Dang
98c21e1bf2 GUI2/Definition: make get_control more readable 2025-02-23 15:02:57 -05:00
Dalas121
58030bde84
TDG: some S00 onboarding improvements (#9941)
Based on: https://forums.wesnoth.org/viewtopic.php?p=696551#p696551

Makes the "Delfador does not use XP to level-up" message less likely to appear in the first scenario, and elaborates on how Delfador does level-up.
2025-02-23 08:28:14 -06:00
Gothyoba
d4e50f3718
Improve Galleon Unit Description (#9939)
* Improve Galleon Unit Description

* Add Wedge/Vultraz suggestions

* Update Galleon.cfg
2025-02-23 08:46:27 +11:00
Gothyoba
1aa2ee0e84
Use orcs instead of goblins in Sea Orc unit description (#9934)
* Use orcs instead of goblins in Sea Orc unit description

"a great leap for all orcs" makes more sense since they are supposed to be orcs.

* Update Sea_Orc.cfg
2025-02-23 08:04:54 +11:00
Gothyoba
ed731e739c
TDG: Improve Custom Saurian Unit Descriptions (#9935)
* Improve Saurian Juvenile Unit Description

* Improve Suarian Devotee Unit Description

* Improve Saurian Spike Unit Description
2025-02-23 08:04:22 +11:00
newfrenchy83
140d0a6ea4 Integrate special ability events into these abilities.
This had not yet been done in the mainline.
2025-02-22 14:04:29 -06:00
newfrenchy83
cee370683d
Fix “filter_adjacent_location” not working in ability (#9079) 2025-02-22 14:04:09 -06:00
Nils Kneuper
fd9d9fa35e updated Italian translation 2025-02-22 14:40:34 +01:00
Nils Kneuper
4209f3a4eb updated Bengali translation 2025-02-22 14:39:18 +01:00
Subhraman Sarkar
98e4901a3f rich_label: fix wrong text wrapping inside table (#9417) 2025-02-22 16:08:10 +05:30
Subhraman Sarkar
e749b83053 drop preferences.cpp from source lists (no longer needed) 2025-02-22 01:27:29 -05:00
Charles Dang
267ed07a3e Pango/Text: avoid one unnecessary copy in set_text
Low-hanging fruit. More optimization is needed
2025-02-22 00:10:32 -05:00
Charles Dang
ba5352a25a GUI2/Canvas: rename set_cfg and append_cfg 2025-02-22 00:04:50 -05:00
Gothyoba
8a8fe5b0a8 Remove instance of 4 repeated exclamation marks 2025-02-21 12:20:51 -05:00
Subhraman Sarkar
f07bdfb60e font/attributes: add missing include 2025-02-21 16:17:15 +05:30
Charles Dang
b10d6cdf49 GUI2/Canvas: avoid saving config copy
- We now store the attribute list as a class member which is populated in the ctor.
- parse_text_as_formula = false will use a custom formula to resolve the value as a string.
2025-02-21 01:53:52 -05:00
Charles Dang
9ebb1406d9 Font/Attribute List: implement move ctor/assignment 2025-02-21 01:46:42 -05:00
Gothyoba
ad9d81b52a Capitalize Kingdom in TRoW Campaign Deacription 2025-02-20 17:01:34 -05:00
Charles Dang
fb47fd2099 Cmake: use BoostConfig explicitly to silence CMP0167 warning 2025-02-19 16:05:04 -05:00
Nils Kneuper
c235d0c892 updated British English translation 2025-02-19 20:30:34 +01:00
Nils Kneuper
758213b15f updated Finnish translation 2025-02-19 20:29:43 +01:00
Subhraman Sarkar
2f69e660b9 units dialog: allow default sort order customization
the default sort order for recall dialog is now by level. (#9813)
2025-02-19 20:58:45 +05:30
Tahsin Jahin Khalid
3a30dc6f78
SotBE-S16: tweak start event (#9931)
Make Orga the Orc Warlord move to his keep and then face the player, Kapou'e

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-02-19 20:48:13 +06:00
Gothyoba
add9c3d529
Update Unit Description Capitalization (#9923) 2025-02-18 16:24:04 -05:00
Gothyoba
de1c52a190 AToTB S2: Aesthetic Revision 2025-02-18 15:44:27 -05:00
Gothyoba
2be811b995 Use Northlands instead of Northern Lands in THoT Campaign Description 2025-02-18 15:43:31 -05:00