Commit Graph

30204 Commits

Author SHA1 Message Date
Gunter Labes
0dd96c3e69
Put weather behind campaign define 2025-02-09 19:51:55 +01:00
Gunter Labes
4e84288941
Re-add accidentally removed translation mark 2025-02-09 18:18:55 +01:00
Tahsin Jahin Khalid
4a7eac3ad9
SotBE: add snow weather sfx to selected scenarios (#9832)
* sotbe: add snow weather sfx to selected scenarios

* SotBE: remove snow weather

the rationale is that the map is not fully snowed in...the snow is around to be 30% at most. So not needed.

---------

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-02-09 21:33:54 +06:00
Dalas121
6b18d3b666
TDG: Improve Translatability (#9804)
An attempt to improve the translatability of TDG, following lessons learned from #9797
2025-02-09 09:31:17 -06:00
Dalas121
6765db5431
DM -> TDG translations cleanup (#9779)
Various minor changes to tools to better-support the addition of TDG.
2025-02-09 07:48:36 -06:00
Tahsin Jahin Khalid
218a737511
SotBE: update credits (#9867)
Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-02-08 15:23:32 +06:00
Gothyoba
8ba6e06ea0 Consistently capitalize Lord in THoT S2 Text 2025-02-08 09:42:28 +11:00
Gothyoba
5152e25c2d THoT S4 Map: Aesthetic Revision 2025-02-08 09:38:06 +11:00
Gothyoba
2e8d304371
Improve Wose Shaman Description (#9793)
* Improve Wose Shaman Description

* Furthe Wose Shaman Description Improvements

* Rewrite Wose Shaman description

I tried incorporating some ideas from Dashomew into my own description

* Incorporate some of Dalas's description
2025-02-08 09:18:47 +11:00
Gothyoba
7f39b7a632
Add Wose Sapling Description (#9792)
* Add Wose Sapling Description

Fixes #7685

This issue I crated has been lying around for a very long time, so I thought I'd try my best to fix it.

* Reduce repetition slightly in Wose Sapling Description

* Incorporate Dala
2025-02-08 09:17:10 +11:00
Gothyoba
0e7c9952da Uncapitalize goblin in pillager unit description
Race names should not be capitalized according to the typography style guide.
2025-02-08 08:56:42 +11:00
Gothyoba
10e7608e28 Capitalize Elvish Captain in description
Elvish Captain is a unit name, so according to the typogrpahy style guide both parts need to be capitalized.
2025-02-08 08:56:32 +11:00
Gothyoba
3c7eee67ae
Change zookeeper to former maintainer for SotBE (#9858) 2025-02-08 02:13:24 +06:00
Dalas121
366bf8ff55
Map Editor: load Urban_Jungle terrain
TDG and EI use the Urban_Jungle terrain from data/internal. This terrain is loaded inside those campaigns, but not in the editor. With this commit, load Urban_Jungle in the editor too.
2025-02-06 08:36:49 -06:00
Tahsin Jahin Khalid
ded694a82f S3: update code 2025-02-05 16:19:19 +06:00
Gothyoba
3b23ac0999
THoT S3 Map: Aesthetic Revision (#9829) 2025-02-04 15:19:54 +06:00
Gothyoba
dabe7f8ffe Add myself to credits 2025-02-03 16:16:58 -05:00
Thewodoros
7a7e504920
EI: Add macro for multiracial messages
It displays a different message depending on the race of the unit. Dwarves, ogres,
and undead use their own custom messages, the rest use the default one.

Oprional arguments allow changing the speaker and the image. By default,
narrator speaks for the undead, other units speak themselves.

Another optional argument is for the sound (same for all races).

This new macro is used for messages in scenarios 8 and 9.
2025-02-03 17:52:40 +01:00
Subhraman Sarkar
43b4d57009 canvas: add parse_text_as_formula key to [text]
This key toggles parsing of `text` key as formula or not. Default: true.
2025-02-03 07:25:41 +05:30
Descacharrado
98aa84ff41
Polishing the visual highlighting of reachable hexes (#9542) 2025-02-02 13:48:10 -05:00
Subhraman Sarkar
eb0d3f7f7c vertical scrollbar definition: simplify WFL formula
also fix a typo
2025-02-02 20:50:47 +05:30
newfrenchy83
0dce4e4731
Have [filter_attack/weapon]type= pick the type which does more damage (#8936)
resolve [filter_attack/weapon]type= can check both type when it wait only effective type.

* add 'base_type' filter for detect original type of attack reagrdless of [damage_type] modifications

if for some reason the original type must be filtered instead of effective type, this attribute is here for that.

* add effective_type in formulas
2025-02-01 10:36:55 -06:00
Tahsin Jahin Khalid
e3d7407058
[SotBE] S10: refine objectives flow (#9817)
* SotBE: S10: refine objectives flow

* S10: fix typographic errors

---------

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-02-01 18:18:49 +06:00
Tahsin Jahin Khalid
f9643c6849
SotBE: refine map for S16 (#9824)
nothing related to scenario balance has changed. Purely aesthetic refinements.

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-02-01 16:01:09 +06:00
Tahsin Jahin Khalid
f621574524
SotBE S7: update map (#9812)
* SotBE S7: update map

* SotBE S7: slightly tone down map refinements

---------

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-01-29 13:59:21 +06:00
Toom
eb4312ffb8
Convert hex to new format, closes #9799 (#9801) 2025-01-28 12:47:08 -06:00
newfrenchy83
e092acb30f
Do not truncate ability value calculation
Use the floating point ability/weapon special value in damage calculation. Change some more internal calculations from truncation to rounding.

Fixes #9467.
2025-01-28 00:02:40 +01:00
Tahsin Jahin Khalid
7c503054c9
SotBE: S13: refine map (#9808)
* SotBE: S13: refine map
2025-01-27 22:42:51 +06:00
newfrenchy83
3421fe81bf revert Unit/Type: drop bar_scaling keys as well
revert fc8e8eb09e (diff-dc56bda7f509dc7a0a91fbd69d289b59257ae33e16556cff72e86598172f788f) because scaling keys used in TSG and TDG
2025-01-27 11:16:42 -05:00
Charles Dang
fc8e8eb09e Unit/Type: drop bar_scaling keys as well
As suggested by soliton in #9806
2025-01-26 22:36:17 -05:00
Gunter Labes
4092f01988
Remove duplicate textdomain declarations 2025-01-26 22:24:18 +01:00
Severin Glöckner
fe091b967b credits for German translation
[ci skip]
2025-01-26 21:25:38 +01:00
Dalas121
c7d3db402e
TDG S00, fix side 1 having no save_id
a1dd77a fixed Delfador's unset disable_stronger_amlas variable, but inadvertently broken the campaign due to an unset save_id for side 1. By placing Delfador inside [leader] instead, we resolve both issues.
2025-01-25 16:27:12 -06:00
Toom
aa379157c9 Fix parameter name re #9799 2025-01-25 21:52:51 +01:00
Dalas121
a1dd77ad77
TDG S00, fix AMLAs applying to Delfador 2025-01-25 10:35:46 -06:00
Dalas121
121196eb70
TSG: Improve Translatability (#9797)
Some po hints and string changes to make TSG more translatable, as requested by @celerini in #9682.
2025-01-25 07:24:06 -06:00
Toom
870951248f
Expose [fire_event][data] values to WML variable $data 2025-01-24 21:57:06 +01:00
Thewodoros
6ff26aad31 Make frostbite affect wild ogres when sighted
This way it's less obvious that they were not affected before being
sighted.
2025-01-23 19:01:05 -06:00
Thewodoros
24df7aaa8e Simplify ogres sighted events
This also creates a variable which we'll use for the frostbite event.
2025-01-23 19:01:05 -06:00
Gothyoba
29c8e730d0 TDG: Capitalize Silverback in Unit Description
https://wiki.wesnoth.org/Typography_Style_Guide

According to the Typography Style Guide, races shouldn’t be capitalized but unit types should be. Silverbacks aren’t a species, and in this case I think this refer to the Unit Type.
2025-01-24 06:59:48 +11:00
Gothyoba
ebf04808d3 Update coordinates for Movrur in THoT S1
Was supposed to have been changed with the map revision, but was not saved properly.
2025-01-23 08:03:55 +11:00
Wedge009
6a3643926e TDG: Minor corrections/revisions.
[ci skip]
2025-01-22 22:14:36 +11:00
Subhraman Sarkar
8ec8b5e0cb help: readd HttT
And rewrite the section to be more user-friendly in that process.
2025-01-22 14:20:14 +05:30
pentarctagon
e8da69fe63 Fix schema validation error
excluding via ifndef instead of adding a translation mark because it makes no sense for that line to be translated
2025-01-21 23:34:26 -06:00
Dalas121
7048f68303
TDG: fix minor string issue 2025-01-21 20:00:54 -06:00
Dalas121
de0dd25a52
TDG: fix minor string issue 2025-01-21 20:00:37 -06:00
Dalas121
74da2a1724
TDG: add to schema, and fix schema issues (#9786)
While adding TDG to mainline, I missed adding it to the schema. As a result, a lot of issues went unnoticed.

This PR adds TDG to the schema, and fixes the various discovered errors. This PR also updates the schema to reflect the engine supporting multiple [filter] tags in events, and to reflect the engine supporting [change_theme] without keys.
2025-01-21 19:50:18 -06:00
Dalas121
78b86777b5
Move files from data/resources to data/internal (#9787)
"resources" naming isn't correct - most of these files aren't resources.

Instead, we move the actual resources to data/internal/resources, and the other files to data/internal.
2025-01-21 19:50:00 -06:00
Wedge009
d26f2d45a3
TSG: Various small corrections and revisions (#9771)
* TSG: Various small corrections and revisions.

[ci skip]

* add "without save-loading" to sg_help

---------

Co-authored-by: Dalas121 <33790750+Dalas121@users.noreply.github.com>
2025-01-22 08:52:45 +11:00
Gothyoba
85f0148805 THoT S1 Map: Aesthetic Revision 2025-01-21 12:42:03 -06:00
Dalas121
ef666dbcf4
TDG: fix unavailable right-click spellcasting menu 2025-01-21 10:23:41 -06:00
Wedge009
d7ffa12bc3 Encyclopaedia: corrections following #9253.
[ci skip]
2025-01-21 08:00:59 -06:00
Wedge009
c73444a12f EI Final Battle: Em-dashes instead of minus sign.
[ci skip]
2025-01-21 08:00:12 -06:00
Gothyoba
10d8c54c7c Keep gameplay help page up to date with new tutorial
Replaces mentions of the old tutorial with TSG in the help page and changes the recommended begginer campaigns to TDG or AToTB. There’s also some slight wording changes.
2025-01-21 13:02:54 +11:00
Dalas121
8133cd56d9
The Deceiver's Gambit: add TDG to mainline, replacing DM (#9726)
Around two years ago Yumi asked me to create TDG as a replacement for Delfador's Memoirs, and gave me a rough script - the campaign covers Delfador's youth and Eldred's betrayal of Garard. Its gameplay includes a spellcasting mechanic for Delfador.
2025-01-20 11:22:46 -06:00
Thewodoros
a08d8f458a Make nested frostbite event "side 1 refresh"
That way it's clearer that it's not created for all sides.
2025-01-19 13:31:13 -06:00
Thewodoros
0070e81438 Make the main frostbite event "turn end"
That way it doesn't depend on the number of sides.
2025-01-19 13:31:13 -06:00
Thewodoros
729034988b Improve frostbite explanation event
Make the speaker either Gweddry or Owaec, whoever doesn't have the
elixir effect.
2025-01-19 13:31:13 -06:00
pentarctagon
29d949ba4b 1.19.8+dev 2025-01-19 11:55:40 -06:00
pentarctagon
11523799e8 1.19.8 2025-01-19 11:53:14 -06:00
pentarctagon
1c34429027 pot-update and regenerate doc files 2025-01-19 11:51:22 -06:00
Gothyoba
a35291dc1c Change display name of Tutorial Achievement Group
Changed from Tutorial to Old Tutorial given the TSG Rework.
2025-01-19 09:18:20 -06:00
Charles Dang
7bd6896261 MP/Method Selection: reduce excess borders 2025-01-18 21:40:50 -05:00
Thewodoros
5e3392572b Improve message readability
Strikethrough text reads easier when it's more than on word.
2025-01-18 16:08:40 -06:00
Thewodoros
8869a68c60 Fix elixir description message
It seems to have full effect on cavalry.
2025-01-18 16:08:40 -06:00
Thewodoros
4655085c9a Improve Soradoc and outposts location descriptions
Make Soradoc the easternmost town, and the outposts even further east,
which seems more natural description according to the current maps.
2025-01-18 12:35:46 -06:00
Severin Glöckner
071da35a6a wmllint: more precise rule
More precise rule to not match units in Ageless.
2025-01-18 02:07:22 +01:00
Gothyoba
f1b5f271cc Fix typo 2025-01-18 10:18:33 +11:00
Gothyoba
b8f2af62d0 Warn against old tutorial in description 2025-01-18 10:18:33 +11:00
Dalas121
5b5e29ffcb
TSG: use data/resources (#9757)
When TSG was created (and when TSG's PR was created), data/resources did not exist. Now that it does, replace TSG's campaign-specific weather with data/resources.

To fix CI errors, replace the old resource "extra_defines" system with manual includes instead (including in EI).
2025-01-17 16:49:37 -06:00
Nils Kneuper
a6a3510283 updated Dutch translation 2025-01-17 19:47:30 +01:00
Gothyoba
257215a689 Fix typo in TSG Comment
becuase -> because
2025-01-17 13:33:35 -05:00
Thewodoros
5b04e523b9 Allow undo move if not picking item or elixir
If we select the option to leave the item on the ground, we should be
able to undo and move another unit to take it.
2025-01-17 11:09:12 -06:00
Gothyoba
063670cd38
Encyclopedia Revision for TSG: Re-Revised (#9253)
An encyclopedia revision partially for TSG: Re-Revised:

    Explain BF (Before the Fall) in the calendar page. This is not used in mainline, but appears in the game’s code and can be be used by UMC or future mainline content.

    Made spacing throughout the encyclopedia consistent.

    Added a detail on Mount Morogor being the highest active volcano in Morogor, not just a random volcano. This makes it appear more sensible that it is included.

    Added the Island of Gaall and Isle of Omarath to Morogor, shown WoF. IIRC no other islands in Morogor are named in WoF.

    Mentioned Kerlath and the Far South at the end of the Wesnoth description.

    Removed reference to Blackmore being Wesfolk to prevent contradicting certain add-ons

    Clarified Kerlath is the southernmost province in the Westin description, not just a southern province.

    Added Southport to the Wesnoth section from the TSG Re-Revision.

    Mentioned farmland in the periphery of Elensefar, mostly to fix a minor nagging lore inconsistency where Elensefar is always shown on the island in the Great River in scenario maps, but is shown south of it in the large map of Wesnoth. Since there are usually some village around Elensefar, some farmland made sense.

    Removed the Southwood due to its removal from the TSG Re-Revision.

    Added the Vale of Blossoming Trees and Lake Aelin to the section on Southwestern Elves.

    Replaced "men" with "humans" in the Northlands description, which I accidentally copied from the old description. I see no reason for this not being gender-neutral. (Actually, these small changes could be merged separately earlier)

    Mentioned Saurgrath in the Northlands.

    Replaced Bay fo Jotha in Jotha’s descriotion with “South of Bitok”

    Added a description of the Mourned Hills which mentions Lmarig, as suggested by CelticMinstrel

    Added the Acanclave Citadel in the Far North from the MP Map

    Remove explicit mention of Dunefolk in the Far South and mainline Isanbar and the Ashland Desert.
2025-01-17 10:35:57 -06:00
Dalas121
e4c35031f7
The South Guard: add Dalas's tutorial revision to mainline (#9682)
This PR replaces the current TSG with Dalas's TSG tutorial revision from the addon server.
2025-01-17 08:26:44 -06:00
Thewodoros
072392d16b Remove unused BRAZIER_ILLUMINATION schedule
Instead of it, other more specific schedules
(BRAZIER_ILLUMINATION_LONG_NIGHT, BRAZIER_ILLUMINATION_SECOND_WATCH,
BRAZIER_ILLUMINATION_MORNING) are used in the scenarios.
2025-01-16 07:30:14 -06:00
Thewodoros
cada5ce359 Remove unused time of day
It was used by removed NORTHERN_WINTER_SCHEDULE.
2025-01-16 07:30:14 -06:00
Dalas121
d498ea2182
amlas resource; add comment explaining [allow_undo] 2025-01-16 07:17:51 -06:00
Gunter Labes
99e5abcf19 Add missing keys to the schema 2025-01-16 14:03:23 +01:00
Subhraman Sarkar
1c460f17a1 celes theme: fix infinite preprocessor loop 2025-01-16 14:47:12 +05:30
Subhraman Sarkar
1be5ec32c2 celes theme: various adjustments
1. make the gold color less bright
2. add hover states to radio and checkbox and update disabled state
3. make hover states of language and about button consistent with other buttons (white -> yellow)
2025-01-16 11:26:12 +05:30
Subhraman Sarkar
20c95a472c advanced preferences: simplify name
removed redundant information.
2025-01-16 06:38:38 +05:30
Wedge009
a5a7b46685 Replace an instance of wrong quote orientation.
[ci skip]
2025-01-16 10:44:39 +11:00
Wedge009
a5a84c47be EI: Remove unused schedule macro, closes #9748.
[ci skip]
2025-01-16 10:22:54 +11:00
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
Subhraman Sarkar
abb90d309f celes theme: fix copy button graphics 2025-01-09 19:28:34 +05:30
Subhraman Sarkar
a47a4d1fc4 titlescreen: preference and button for closing tips panel 2025-01-09 09:02:42 +05:30
Subhraman Sarkar
6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30
Thewodoros
f83f5533d6
EI S06b: fix a couple of small bugs, code improvements (#9707)
* Simplify Owaec/Yannic meet event
* Simplify meeting event after enemy leaders deaths
* Use correct variable in Yannic's last_breath event
* Fix bug with victory message
* Make scenario-ending event non-repeatable
* Simplify time-over event
2025-01-08 06:35:54 -06:00
Dalas121
f05b6e32b7
LoW S10: fix impossible win condition
Resolves #9705
2025-01-07 18:57:51 -06:00
Thewodoros
576985c51a
EI S07a: Init variables in prestart (#9704)
So we don't need to check for their existence afterwards.
2025-01-07 07:18:34 -06:00
Subhraman Sarkar
db8873e2aa mp method selection: improve accessibility
tab ordering has been added to the username textbox and the list of methods.
this serves two purposes:
1. the listbox is initially selected, so the user can select entries using keyboard.
2. navigation between the listbox and the username textbox can be done using TAB.

additionally,
3. the message and control layout has been tweaked to hopefully make it a bit user friendly.
4. the last selected method is remembered via a preference key.
5. a [X] button has been added on top-right so that the window can be
   closed via mouse. (previously, it was only possible with the keyboard
   Esc option or by clicking on one of the methods.)
2025-01-07 00:46:40 -05:00
Charles Dang
33f8dfd7a1 GUI2/Outro: fix text not wrapping (resolves #6041)
Part of what's unusual about this dialog is we use canvas shapes to draw the text rather than actual widgets. I want to look into doing so, but it makes alpha fading more difficult.

Nonetheless, this problem also arose because text wrapping is handled differently from other text shape keys. Instead of evaluating a formula taken from the config (for instance `"(text_wrap_mode)"`), the value is queried from the WFL variables set on the canvas directly before being passed to the text rendering code. The value set for said variable is controlled by the wrap=true/value key, which is set per widget *instance*.

Making the canvas handle this key like any other would mean making sure most text shapes have the appropriate config key set, even if (as the example above shows) the key only spit out the formula variable anyway.

Also made it so text doesn't go all the way to the edge in the event that it stretches that long.
2025-01-05 19:44:21 -05:00
Thewodoros
75fbf3002e
EI S06a: improve death and endlevel events (#9700)
* Don't trigger event after Dolburras is rescued
* Merge unneeded duplicate events
* Don't trigger retreat if leader is killed
* Fix bug with dwarf death triggering undead retreat
* Remove unnecessary variable
* Use standard [endlevel] instead of [fire_event]
* Fix bug when former jailer death shows objectives
* Move events for readability
2025-01-05 08:53:21 -06:00
Charles Dang
dce17a3ba7 GUI2/Outro: reduced text size 2025-01-02 21:31:59 -05:00
Dalas121
01439c6cd8
EI S05 prose: Galdren and the sylph (#9689)
Fix some EI dialogue inconsistencies
2025-01-01 09:45:37 -06:00
Thewodoros
cbeb4e4d34
Clear dangling variables (#9688)
These variables are not used later, so they may be cleared.
2025-01-01 07:37:21 -06:00
Subhraman Sarkar
a59c4fa80b update some tips based on recent changes
* Unit Description has been renamed to Unit Type Description recently.
* Introduction of vision cost means that how many hexes units can see vs how many hexes units can go is not same.
2025-01-01 15:21:34 +05:30
Elvish_Hunter
2583d9ae80 Fixed a flag description in wmllint and GUI.pyw
The description for the -m flag now correctly says 'warn' instead of 'don't warn'.
2024-12-31 15:07:15 +01:00
gfgtdf
ce262e9275 WC: use [leader] 2024-12-31 01:09:06 +01:00
Subhraman Sarkar
bab3dd6e35 unified units dialog with configurable options
instead of having multiple dialogs with similar UI, we use only one dialog to which multiple configurations and data can be set.
2024-12-29 22:00:00 +05:30