30070 Commits

Author SHA1 Message Date
Dalas121
c77c2077a6
amlas resource, use translatable unit name for help message 2025-01-15 15:57:57 -06:00
Dalas121
8a579ca087
stronger AMLAs resource - allow undo 2025-01-15 15:06:11 -06:00
Celtic Minstrel
1e0bab4a04 Address review comment about API function parameter name 2025-01-15 09:46:42 -05:00
Celtic Minstrel
13ef58ba87 Add a sample Lua plugin that starts TSG, plays one turn, and then exits. 2025-01-15 09:46:42 -05:00
Celtic Minstrel
2fe080d968 Lua API: Plugins can now execute gamestate code once they are in the game context. 2025-01-15 09:46:42 -05:00
Celtic Minstrel
1809138479 Output the ID of the dialog being skipped in case it's not actually a leader select dialog 2025-01-15 09:46:42 -05:00
Celtic Minstrel
e075700115 Update host.lua and join.lua in light of recent changes
* Use the wesnoth.plugin module
* Use .tag and .contents instead of [1] and [2]
* Remove superfluous parentheses on function calls
2025-01-15 09:46:42 -05:00
Celtic Minstrel
0f05094933 Lua API: Add a new plugin module with some useful functions for plugins 2025-01-15 09:46:42 -05:00
Dalas121
a08d6f67f9
Improve Resources: stronger_amlas and resource_weather (#9728)
stronger_amlas: move from amlas.cfg to resources/AMLAs

stronger_amlas: Previously, use_stronger_amlas added extra AMLAs to units that match a certain filter. If units didn't match the filter when they were placed, but did later-on, they still wouldn't be eligible for AMLAs. Fix that here.

resource_weather: [terrain_graphics] cannot be assigned or modified mid-scenario, but can be filtered by ToD. To dynamically modify weather mid-scenario (such as in TSG), use these special "noweather" ToDs.

resource_weather: add wind

both: change textdomain to "wesnoth"
2025-01-14 14:41:03 -06:00
Pentarctagon
f61b7b77ec
Add additional functionality for the in-game add-ons manager (#9693)
When started with the command line argument --addon-info, the Info button is shown on the add-ons manager which then allows:
* querying the downloads by version of the currently selected add-on
* querying the count of total add-ons uploaded vs the count of add-ons using forum_auth
* deleting an add-on (requires being a member of the Site Administrators or Forum Administrators forum groups)
* hiding an add-on (requires being a member of the Site Administrators or Forum Administrators forum groups)
2025-01-14 09:35:46 -06:00
Gunter Labes
ad7a458250
Remove nonsensical comment 2025-01-14 09:38:21 +01:00
Gunter Labes
fbf43bcfc1
Typo fix 2025-01-14 09:36:58 +01:00
Wedge009
eac2730235 WoF Wyrm: Correct text domain, resolves #9740.
[ci skip]
2025-01-14 09:15:54 +11:00
Tahsin Jahin Khalid
707135afa4 THoT: remove duplicate macro 2025-01-14 09:08:52 +11:00
Thewodoros
129fdf74e4
Replace "ken" with "can" in dwarf speech (#9738)
Use "ken" only for "know" or "see" meanings, not for "can" meaning.
2025-01-13 09:46:19 -06:00
Thewodoros
28920faad4
Replace mention of Ulrek with Relgorn (#9736)
Relgorn is Ulrek's son and helped humans more recently.
2025-01-13 09:45:39 -06:00
Thewodoros
55a701cc6e
Mention invasion force instead of just undead (#9737)
We fought undead most recently in S06a, but it was a rear garrison.
2025-01-13 09:44:55 -06:00
Thewodoros
a49ccf0b3f Don't show defeat message if we choose to restart
It feels odd in that case.
2025-01-12 19:30:03 -06:00
Thewodoros
85bdfe391b Remove unused key from [endlevel]
When result is defeat, other keys are not used.
2025-01-12 19:30:03 -06:00
Thewodoros
a21b695a85 Fix bug with dwarf meeting event
It didn't disappear when either of them died.
2025-01-12 19:30:03 -06:00
Thewodoros
31fe9813cd Don't start the task if Pelathsil is dead
The enemies should not be able to reach him that early, but just in
case.
2025-01-12 19:30:03 -06:00
Thewodoros
dfb14774c2 Replace Tath with Parthyn in po comments
It was Parthyn which the orcs attacked, Tath is where the necromancers
steal the book.
2025-01-12 19:30:03 -06:00
Thewodoros
79f102c641 Replace saurians with nagas in po comments
Mentions of saurians must be a leftover from earlier development.
2025-01-12 19:30:03 -06:00
Subhraman Sarkar
f4e0a7bd14
UtBS S1: make Kaleh's dialog a bit more emotional (#9734)
Adds a couple of exclaimation marks to better emphasize the shock.
2025-01-12 13:56:32 -06:00
Subhraman Sarkar
50fe386aa7 celes theme: listbox header definition 2025-01-12 14:09:31 +05:30
Dalas121
3de627e704
Stronger AMLAs Resource: fix filter not being applied to help message
The use_stronger_amlas resources includes a modifiable filter to choose which units are affected.

Formerly, that filter did not apply to a help message, resulting in the ANKA help message appearing even for units that weren't eligible for the AMLAs.
2025-01-11 11:07:31 -06:00
Subhraman Sarkar
bb34d5350b celes theme: radio and checkbox definitions for advanced prefs 2025-01-11 13:38:10 +05:30
Subhraman Sarkar
442200e1fc celes theme: fix slider warning when disabled 2025-01-11 13:03:07 +05:30
Charles Dang
000357ac3e GUI2/Main Menu: minor spacing and wording tweak 2025-01-11 01:48:14 -05:00
Dalas121
18434cb48f
Move Weather effects into a separate resource
These weather effects are used TSG, TDG, and other WIP campaign revisions. Duplicating them across each campaign seems pointless, so I've moved them into a resource here, following the precedent set by #9669.
2025-01-10 19:52:42 -06:00
Charles Dang
86b36d16fc GUI2/Main Menu: minor tweaks 2025-01-10 16:31:47 -05:00
Charles Dang
9326f02e18 GUI2/Main Menu: attempt to reduce sidebar height on low res 2025-01-10 16:28:19 -05:00
Charles Dang
ddcf5aef17 GUI2: strip trailing whitespace 2025-01-10 15:58:01 -05:00
Charles Dang
0a59879cd7 GUI2: remove a couple unneeded grow_factor keys
This is only required in the columns of the first row, else it does nothing.
2025-01-10 15:43:00 -05:00
Charles Dang
bb465c97e5 GUI2: remove GUI_SCALE_RESOLUTION macro 2025-01-10 15:40:52 -05:00
Thewodoros
382343e882 Make scenario end when northern undead arrive
Otherwise they can kill Izziasch and win the scenario for us.
2025-01-10 09:39:37 -06:00
Thewodoros
94500787d3 Remove clearing unknown variable
This variable is not created anywhere, must be a remnant from earlier
development.
2025-01-10 09:39:37 -06:00
Thewodoros
872266b631 Replace last breath with die for undead leaders
They already have last breath events imported through ENEMYDEATH_SORADOC
macro.
2025-01-10 09:39:37 -06:00
Thewodoros
5135511756 Avoid using manual KILL in last breath event
This is error-prone, better to just have separate last breath and die
events.
2025-01-10 09:39:37 -06:00
Thewodoros
bec750c98e Avoid having two last breath events for Izziasch
This is to avoid behavior depending on the order of the events in the
scenario.
2025-01-10 09:39:37 -06:00
Thewodoros
4adf905f5a Simplify code for limiting undead moves
Use nested events instead of variables and conditions.
2025-01-10 09:39:37 -06:00
Thewodoros
4972b265e2 Fix bug with non-working scroll
We can't scroll to location outside map boundaries.
2025-01-10 09:39:37 -06:00
Thewodoros
409d92b321
EI S07b: fix contradiction about Plague Staff origins (#9717)
We can finish the previous scenario without killing any enemy leaders (this is even encouraged by the achievement requirements), but the Plague Staff origin dialogue states it's from a dead necromancer. Resolve the contradiction here. Fixes #9709.
2025-01-10 07:24:57 -06:00
Dalas121
10dae03b01
Move "Urban Jungle" terrain from EI into a separate resource (#9669)
These terrains are used in EI, TSG, TDG, and other WIP campaign revisions. Duplicating them across each campaign seems pointless, so I've moved them into a resource here.
2025-01-10 07:06:09 -06:00
Thewodoros
d8d98860e7
EI: Remove death events for heroes before they join (#9716)
Remove HERODEATH_* macros for heroes who ahave not appeared in the
campaign yet. Also edit a comment to only mentioned the heroes who could
have appeared in the campaign by that point.
2025-01-10 06:07:21 -06:00
Subhraman Sarkar
fd1f9b6500 titlescreen: disable spacer
without this, wesnoth fails to load at 1366x768 resolution
2025-01-10 14:23:08 +05:30
Charles Dang
85ba287d4f GUI2: Refine new mein menu design even further 2025-01-10 02:20:00 -05:00
Subhraman Sarkar
f43a24640b celes theme: resize copy button to 30px, fix slider missing image 2025-01-10 10:57:56 +05:30
Subhraman Sarkar
f9e59b0d7a celes theme: button definition updates
1. adds repeating button definitions
2. default icon button size changed to 30x30 to better align with text buttons and menu buttons
3. code simplification
2025-01-10 09:57:24 +05:30
Charles Dang
a3eeed5704 GUI2/Story Screen: use script font for scenario title 2025-01-09 22:29:49 -05:00