Commit graph

29725 commits

Author SHA1 Message Date
Celtic Minstrel
8d5ca809f4 [Lua] Update obsolete location functions in ai_helper to return a proper named tuple and access locations as x,y instead of [1],[2] 2024-05-19 12:54:35 -04:00
Celtic Minstrel
058d0502e5 [Lua] Update obsolete use of [1],[2] to refer to locations, and simplify some code by leveraging the fact that any object with x,y qualifies as a location; also use moves_left for reachmaps instead of [3] 2024-05-19 12:54:35 -04:00
Celtic Minstrel
f5c4f2e841 [Lua] Update obsolete usage of [1],[2] to refer to a tag's name and contents 2024-05-19 12:54:35 -04:00
Celtic Minstrel
0f6fe67477 [Lua] Use wml.tag to construct WML tables 2024-05-19 12:54:35 -04:00
Wedge009
ef13ea4565 Tutorial S2: Only trigger comment about the 'Dumbo' orc if it is still alive after the attack.
Addresses final point in #5544.
2024-05-19 10:54:16 +10:00
Tahsin Jahin Khalid
c57251ef34
Units: fix white horse HP and XP stats (#8814)
As pointed out by Celtic Minstrel and hejnewar
2024-05-15 16:54:53 +06:00
Subhraman Sarkar
336226d198
bugfixes for unit type editor (#8846)
* bugfixes for unit type editor

1. accept space in unit type id
2. don't write translated string to generated wml
3. add textdomain at the top of the generated file
4. fix bad key in generated attack block
2024-05-12 14:41:28 +05:30
doofus-01
62b9ddaa47
Wyvern graphics work (#8854)
* Wyvern portrait and animations
2024-05-11 19:43:45 -07:00
Dalas121
3e4e805b08
EI S04b: Prevent aswaldan herbs from stacking (#8859)
In "Ill Humors", 2 spawn regions for aswaldan herbs overlap, which can result in both spawning on the same hex without any special visual indicator.

Credit to PointMeAtTheDawn.
2024-05-07 17:52:49 -05:00
Subhraman Sarkar
03a46f1d7c
Combobox, Tab Container and Editability in Text Box (#8390)
* new combobox and tab container widgets
* ediability in text box via the editable key
2024-05-06 09:56:44 +05:30
Dalas121
9d3e2e82a3
EI: s10 fix owaec being able to enter the sanctuary (#8850)
Fixes #8843
2024-05-05 09:13:54 -05:00
Elvish_Hunter
d8b1064c32 Added Fire Wisp unit
The sprites were made by fmunoz, who agreed by forum PM to re-license them under the CC-BY-SA license.
2024-05-05 11:06:47 +02:00
Earth-Cake
30a1a1e7be
EI - changed undead variants from 'spider' to 'ant' (#8849) 2024-05-04 20:49:09 -05:00
Nils Kneuper
f43e977263 updated Norwegian translation credits 2024-05-04 16:02:28 +02:00
Steve Cotton
91fab6939a EI: Add po hints about the plague staff
(cherry picked from commit 8c83da78e2)
2024-05-04 09:44:39 +10:00
Wedge009
7987b863dd Editor Help: grammar correction. Resolves #8615.
[ci skip]
2024-05-03 13:40:38 +02:00
Steve Cotton
3fba8897d8 Help shows terrain types in the section for their default_base
Instead of the aliasing hack that the oasis terrain used to use, have
the help topic generator reuse the editor_default_base as a hint that it
should be included in that section.

The terrain_type class gets a new boolean method, and more documentation.
There's a couple of refactors to use the new method in old code too.
2024-05-01 12:33:01 +02:00
nemaara
ff040853c2 DiD S3: do not allow exp grinding and buff puzzle exp 2024-04-29 18:37:56 -07:00
doofus-01
0b281f64e0
1.19 - Brush up minor characters (#8764)
* HttT sea orc update

* TSG eyestalk portrait

* TRoW vampire lady portrait
2024-04-28 18:53:11 -07:00
Tahsin Jahin Khalid
4fb9f51db7 utils.cfg: typo fix in FULL HEAL macro 2024-04-28 20:45:27 +02:00
Jonathan-Kelly
890caf513c Add submerge to oasis terrain
Follow up to #8783 this makes a unit on an oasis tile visibly sink slightly into its waters, just like with ford terrain.
2024-04-28 11:31:45 +02:00
ForestDragon
72d2f4588b
Nerf Elvish Shyde/Enchantress/Sylph/Sharpshooter/Avenger
* Elvish Avenger - decreased ranged attack from 11×4 to 10×4, decreased cost from 66 to 60
* Elvish Sharpshooter - decreased ranged attack from 12×5 to 10×5, decreased cost from 62 to 55
* Elvish Shyde - decreased ranged slow attack from 8×3 to 7×3, decreased ranged magical attack from 14×3 to 10×3, decreased cost from 69 to 58
* Elvish Enchantress - decreased ranged slow attack from 7×4 to 6×4, decreased ranged magical attack from 13×4 to 11×4, decreased cost from 70 to 62, decreased XP requirement from 198 to 180
* Elvish Sylph - decreased ranged magical attack from 16×5 to 13×5, decreased cost from 161 to 135
2024-04-27 13:56:50 +02:00
Tahsin Jahin Khalid
60a620ba76
HttT S16: fix li'sar missing her unrenamable=yes (#8782)
* S16: fix li'sar missing her unrenamable=yes

* S16: add one more instance of unrenamable=yes
2024-04-27 12:53:23 +06:00
pentarctagon
6d12b17d95 add tooltip. 2024-04-27 00:55:24 -05:00
Pentarctagon
b3f6f80010
Add a button to the build info dialog to rerun the migrator. (#8791)
Add-ons: checks for any that exist in the chosen other version but not in the current version.
Preferences: adds attributes that don't exist from the chosen other version's preferences that aren't in the current version's preferences. for attributes that exist in both, use the attributes from the file that was modified most recently.
Credentials: move if the credentials file doesn't exist.

Fixes #7936
2024-04-27 00:45:41 -05:00
Gunter Labes
c2d179f75e
Missed one pair of quotes 2024-04-26 23:39:02 +02:00
Gunter Labes
2099c23e54
Remove unnecessary workaround 2024-04-26 23:33:19 +02:00
Jonathan-Kelly
b3802f44ea SoF S7: fewer and slower enemy outriders
This is to counteract the swifter and deadlier Elvish Outrider after the 1.18 core unit balance changes.
2024-04-26 16:44:24 +02:00
newfrenchy83
71a6e465e0 using number of amla to condition increase of experience to level change
Like this, when Youth remain level 1 in EASY mode, max_experience remain to 16
2024-04-24 20:01:37 +02:00
newfrenchy83
8554e9844e add formula in Quenoth Youth advancements 2024-04-24 20:01:37 +02:00
Iris Morelle
00cdaaa2d6 gui/language_selection: Additional UI work for clarity
* Moved the Show All Languages checkbox from the main body to the
   bottom left of the dialog to save space and make it more obviously
   connected to the listbox.

 * Changed the Show All Languages checkbox label to reduce the word
   count a tiny bit.

 * Added text regarding translation percentages representing core
   textdomains only.

 * Added a link to gettext.wesnoth.org.
2024-04-24 09:45:13 -04:00
Steve Cotton
ac12be8342 Unit test cumulative resistance with a max_value
In 1.19 since 82499d0785, this will apply a
max_value of 15, which will also be the combined value.

The same test has surprising result on 1.18, the max_value attributes get added
together for a total max_value of 47, but the values don't, so the single
highest value of 30 is used.

(the corresponding 1.18 commit is 9632febdb5)
2024-04-24 14:52:22 +02:00
Steve Cotton
3fb8a91bc6 Unit test cumulative resistance with a base value
These tests clarify what "cumulative" means for non-leadership abilites,
which since Wesnoth 1.1.3 doesn't seem to fit the English word.

For cumulative abilities, if the base value from the unit is higher that
the ability's value, then the base value is used instead. In the case of
a Skeleton with 40% base resistance, "cumulative=yes" is equivalent to
"value,cumulative=40,no".

In all of these cases, a single ability's value is used; "cumulative"
doesn't mean that the values from multiple abilities interact.

This is all when using value=, not when using add= or sub=.

(cherry picked from commit 9b2016a4af)
2024-04-24 14:52:22 +02:00
newfrenchy83
51e568ff1c Convert CRYSTAL_QUIVER to ability for consistency and move overlay and halo to abilities
I don't know if a bow  attack is added in the objects but in any case I prefer to transfer the special oar in abilities in the same way as for the amulet
2024-04-24 10:41:09 +02:00
newfrenchy83
929d62e7f6 Fix EI: Plague Staff Doesn't Gain Arcane Damage When Equipped After Holy Amulet
Fix https://github.com/wesnoth/wesnoth/issues/8745 in using ability instead of specials
2024-04-24 10:41:09 +02:00
Jonathan-Kelly
707c4e6ed2 Add shallow water to oasis like ford terrain
Resolves  #8753
2024-04-24 04:39:06 +02:00
newfrenchy83
c7080e0ecc
Select alternative damage type based on opponent resistances
If two [damage_type]alternative_type= are used with two different types, the chosen type displayed in the pre-combat window will be the one to which the opponent is most vulnerable. That type will then also be used in the attack if it is stronger than the original/replacement_type.

In the sidebar (report) all alternative_types are displayed.

---------

Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2024-04-21 13:05:03 +02:00
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