Commit graph

29838 commits

Author SHA1 Message Date
Marcus Örnås
d3b3c8c07a Add a "Teleport Unit (Debug!)" option to debug menu
Fixes #5649
2024-04-18 18:24:56 -05:00
pentarctagon
39987cd1ca Add a Community button to the title screen.
This opens a dialog with links to the forums, discord, etc, plus a donate button that links to Wesnoth's SPI page.
2024-04-15 16:50:42 -05:00
Dalas121
3dadec9cac
EI S12: prevent ogres from saying the final goodbye in "Evacuation" (#8761) 2024-04-14 14:07:20 -05:00
Tahsin Jahin Khalid
d179c3a424 NR: remove unused unit: Cave Serpent
Part of #8734
Note: I searched all NR scenario files with "search and replace" in VS Code and apparently this unit was not even being used in NR.
2024-04-14 18:54:31 +02:00
Dalas121
eb8fe63928
Fix "mak-dak'an" typo in EI (#8752) 2024-04-13 17:01:40 -05:00
Dalas121
dc538bf100
Liberty: Custom Unit for Lord Maddock (#8551)
* Liberty: add custom unit images for lord maddock

* Liberty - upload maddock custom unit .cfg

* Liberty: scenario 4 use custom maddock unit

* Liberty: fix incorrect texdomain in Maddock.cfg

* Liberty: remove whitespace from Maddock.cfg

* Update maddock's unit description

Co-authored-by: nemaara <nemaara@users.noreply.github.com>

* Update Maddock.cfg unit description

* update copyrights

---------

Co-authored-by: nemaara <nemaara@users.noreply.github.com>
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2024-04-13 05:13:23 -05:00
Subhraman Sarkar
6d68af0834
sylph and enchantress attack description changes (cosmetic) (#8737)
enchantress' attack icon is also changed to make it consistent
2024-04-12 17:10:32 +02:00
Celtic Minstrel
7aa5450a41 [Lua] Replace gui.show_inspector's undocumented config parameter with a string parameter that does the same thing.
It's still supported to pass a config, just in case anything relied on that.

This also updates the LuaDoc documentation at the same time.
2024-04-11 23:49:15 -04:00
Celtic Minstrel
d734bfb9e2 [Lua] Make wesnoth.read_location return its result in standard named tuple format 2024-04-11 23:48:21 -04:00
Pentarctagon
901e91c8ec
Move Dunefolk to the Default era. (#8688) 2024-04-11 10:43:41 -05:00
newfrenchy83
82499d0785
add min_value to [resistance] (#8722)
max_value is used to limit the increase in resistance with the "resistance" capability, but there was no equivalent for its reduction.

To be able to add min_value without redoing the "resistance" checking for the umpteenth time, I prefer to modify effect:: so that the checking of these two attributes is done at the same time as the other numerical attributes and keep the door open to a possible generalization of the proceed
2024-04-11 04:48:41 +02:00
Wedge009
f5c8db7b2f Unit editor: Remove translation mark from image paths. 2024-04-10 22:04:21 -04:00
pentarctagon
3f016ebe35 pot-update and regenerate doc files 2024-04-10 12:07:57 -05:00
Dalas121
b98181a3da
EI: remove duplicate AMLAs (#8723)
Under some circumstances, units in EI could have their custom AMLAs listed multiple times in the advancement dialog.
2024-04-09 18:46:55 -05:00
Dalas121
80e84f1eeb
EI: reduce Barrow/Pyre Wight vulnerability to arcane (#8715)
* Update Undead_Horse_Barrow_Wight.cfg arcane resist
* Update Undead_Horse_Pyre_Wight.cfg arcane resist
2024-04-09 17:07:17 -05:00
Dalas121
f657a36549
EI: preserve XP when Dacyn receives scripted advancements (#8716)
* EI: retain experience when Dacyn advances to twilight mage
* EI: retain experience when Dacyn advances to fallen mage
2024-04-09 17:06:39 -05:00
Steve Cotton
8e59da9186 Clearer documentation for the ATTACK_AND_VALIDATE macro 2024-04-09 00:28:22 +02:00
Steve Cotton
63638278b3 Document why the Fog Clearer's traits show in help
Not mentioned here, but turning on debug mode also affects which units,
and therefore which units' traits, are shown in help.

Having looked back into the history while wondering why it was done this way
in e9603e6e01, back then we needed a fix that could be backported to 1.14,
so couldn't add a new attribute to [unit_type].
2024-04-07 21:53:34 +02:00
Steve Cotton
83288dc6f9 update German translation
s1m0n was in the credits for 1.16, but that was missed when his contributions
were copied to master. Fix that, along with adding his latest updates.

The fuzzy flag in -wof probably got readded by mistake when rebasing.
2024-04-07 12:35:34 +02:00
Nils Kneuper
0657f19c6b updated Finnish translation 2024-04-06 15:07:02 +02:00
newfrenchy83
57c8e0cce0
Fix attack::damage_type bug for ability resistance
When [damage_type] is used but the opponent uses the resistance ability
against the added type, the ability filter only detected the original type and
the new type was not affected.
2024-04-04 18:01:36 +02:00
OrekOrek
c66b6d6c85
"Sands" to "Sand" (#8443)
Rocky Sand to Gravel
Desert Sand back to Desert Sands
Beach Sand back to Beach Sands
2024-04-03 09:25:08 -05:00
Oleksii
578b67e243
Restore alphabetical order of Ukrainian translators 2024-04-03 12:50:20 +02:00
Oleksii
e052632a50 Ukrainian translators update about_i18n.cfg 2024-04-02 14:53:27 -05:00
Steve Cotton
6f95b062cb wmlxgettext: Fix "fix invalid escape sequence"
The original code was probably meant to strip trailing whitespace, which
turned out to be a bug when 4be9aa8584
fixed the buggy regexp so that it started working. That has now been
removed.

Fixed handling of multiline plural strings, which was broken too.

One feature has been left unimplemented, and will cause wmlxgettext to error
out. For "long bracketed" strings, Lua allows the contents to start with a
newline, which is automatically stripped from the resulting string. Trying to
understand the original purpose lead me to this feature of Lua strings which we
don't use in Wesnoth; and I finally concluded that, if someone wants to use
that feature, it can be their problem to implement it.

This fixes commit 4be9aa8584.

(cherry picked from commit e4239634e5)
2024-04-02 16:12:23 +02:00
Iris Morelle
7049166ecc gui/language_selection: Use a custom label for the OK button 2024-04-02 09:51:46 -03:00
Iris Morelle
94cfe18ecc gui/language_selection: Don't force even height for language column
While it sounds like a great idea on paper, in practice having the
language column have the same height on all rows causes issues because
of at least one entry having an unusually tall label because of
non-Latin characters involved in it.

[label] does not support setting the vertical alignment of text — only
the vertical alignment of the widget itself can be set. This doesn't
help in this case because the widget is always as tall as its row —
it's the text's positioning that needs adjusting.

It turns out to be a better look to have all text be vertically
centered by not letting the label's height be dictated by the row's,
and let the layout engine center the label if needed for any reason.
2024-04-02 09:51:46 -03:00
Iris Morelle
7a1d6afafa gui/language_selection: Language dialog overhaul
This overhaul introduces a GUI option to show all languages regardless
of their completion threshold, as well as a side panel including a
general explanation of community translations and how players can
potentially contribute to them, plus a link to the main translations
page on the wiki.

A few points to make here:

 * The URL points to the main page on purpose, since it's meant to be
   a catch-all for all languages regardless of which one the player
   has got selected or configured (those are two different things at
   the moment).

 * There's an issue where when showing all translations, some of the
   non-Latin translation names cause the baseline of the language
   name labels to end up entirely misaligned with the completion
   labels. I am not entirely sure how to fix this right now.

 * Showing all translations alters the dialog's layout permanently. I
   believe there's no way out of this with the current GUI API.

 * We use the stock text colouring function used for unit defence
   values. This might not be entirely ideal because they are all very
   green for translation stats above the minimum threshold, so there's
   basically no variance by default until all translations are shown
   together.

 * An idea could be to add a link to the gettext.wesnoth.org stats
   page in the dialog.
2024-04-02 09:51:46 -03:00
Dalas121
4dd164e0b0
EI 12_Evacuation.cfg: fix Dacyn's halo not flickering (#8676) 2024-04-01 22:48:48 -05:00
Dalas121
4bed0f2666
EI: survivor trait and sentinel shield bugfix (#8667)
* EI: fix sentinel shield + survivor bug #8632
* EI: fix survivor weaponless bug #8633
2024-04-01 20:20:51 -05:00
Dalas121
061b2da037
campaign_dialog.cfg - Explain the RNG options better (#8610) 2024-04-01 17:43:39 -05:00
Dalas121
28ab770d7f
EI S05: fade to silence when recounting the priestess's death (#8547)
In EI's S05, Owaec briefly recounts the bloody fate of his local priestess, killed by undead.

The scenario's music consists of wanderer.ogg and traveling_minstrels.ogg, which are inappropriate for encountering a mangled corpse.

Instead, fade the music out during this section.
2024-03-31 09:48:11 +02:00
Dalas121
ae8b3a580d EI S14 - Indicate uncleared swamp hexes with "swap reed" images
EI's S14 involves traversing a swamp with hidden undead. To make it easier for the player to remember which hexes they've cleared, mark the uncleared hexes.
2024-03-30 19:32:50 +01:00
Dalas121
13ded3e60d Add "swamp reed" images to EI Drowned Plains
Derived from the core water-plant.png and water-plant2.png images.

Copyright attribution updates by octalot:

They've been darkened since the original commit, but the swamp water
tiles in data/core/images/terrain/swamp are clearly Tommy(yobbo)'s
images originally added in f7cc2f1079.
The current water-tile.png seems to be a later addition, so I've
left it attributed to "unknown".

Co-authored-by: Steve Cotton <steve@octalot.co.uk>
2024-03-30 19:32:50 +01:00
Dalas121
1fe6b1379b
EI S10: change "ghasts in cages" to "ghouls in cages"
Fixes #8620
2024-03-30 10:28:07 -05:00
Dalas121
8deaad2b10
EI - show custom traits in help menu (#8652)
* EI - add dummy unit file so traits show up in help menu.
* EI - add help_text to traits
2024-03-30 08:33:38 -05:00
Steve Cotton
f930418827 UtBS S05: Stop moving when sighting ants and dwarf
The stalactite and dwarf sighting became effectively a single
event in a7680561d0, so this combines them into one.
2024-03-30 13:13:37 +01:00
Discontinuum
423481d481
Fix description of World Conquest 4p (#8657) 2024-03-29 18:51:07 -05:00
PointMeAtTheDawn
09b8430da0
UtBS S1: Smooth out the luck involved in getting units from villages
Before this change villages had a certain set % chance to grant player a unit upon capture. Now the chance to get a unit is dependent on difficulty, value of units player has already received and the amount of villages already captured.
2024-03-29 21:40:11 +01:00
Steve Cotton
b313270261 Tutorial S01: Better timing for the hints
No string changes, just adjusting when the hints at the top-left of the screen
appear and disappear.

The hint about crowns now appears after recruiting both elves, so that there
are units to compare the leader to, who have the same orb color but no crown.

The hint about traits appears when told to attack the quintain with the elves.
The player will probably find a strong or dexterous trait, and Delfador already
comments about those traits after attacking. Even if neither elf has those,
speedy or robust could also influence whether to use melee or ranged attacks.

There's now no hint on screen when first choosing which village to use for
healing; previously it was the hint about crowns which didn't seem relevant.
No strings are added in this commit, but a hint about checking the quintain's
movement range would fit here, see <https://r.wesnoth.org/t54644>.

(cherry picked from commit f7a0f119de)
2024-03-29 13:38:21 +01:00
Steve Cotton
c1b331c62f updated German translation 2024-03-27 01:00:51 +01:00
Subhraman Sarkar
0bef2252a1
basic support for filtering campaigns based on completion status (#8451) 2024-03-26 13:24:14 -05:00
Subhraman Sarkar
0b646dec8a New Unit Type Editor UI in Scenario Editor 2024-03-26 13:23:38 -05:00
Subhraman Sarkar
29cc307ac7
aethermaw : change Sulla's title to Aether Mage (#8539) 2024-03-26 19:14:33 +05:30
pentarctagon
06cccdbd4a achievements scrollbar auto 2024-03-26 00:32:34 -05:00
Subhraman Sarkar
62ac421cf4 MP: Aethermaw: Update images with their 1.18 variants
(cherry picked from commit 2b9ed47080)
2024-03-25 21:02:48 +01:00
Toom
e9e1c060d6 Add yellow and pink color_range 2024-03-25 18:28:55 +01:00
Toom
4be9aa8584 fix invalid escape sequence 2024-03-24 21:33:47 +01:00
Gunter Labes
01db35ae56
Add the 1.19.x campaignd to port list 2024-03-22 22:30:22 +01:00
newfrenchy83
7eee400ec0 fix shema validation for overwrite_specials
sme weapon special can use overwrite_specials but i forget to put it in shema validation
2024-03-22 17:09:29 +01:00