Commit graph

29838 commits

Author SHA1 Message Date
doofus-01
ddb4d727c2 adjust layering to keep units from sinking into N/S bridge image 2023-12-16 16:23:02 -08:00
gfgtdf
b5e646db25 Fix out of sync errors with pick advance mod
local lua variables  are not persitent over reloading.
moveto events that change the gamestate cannot be undoable unless on_undo code is provided.
2023-12-16 17:00:17 +01:00
Nils Kneuper
444a3ea007 updated Finnish translation 2023-12-16 11:13:16 +01:00
Nils Kneuper
90ba0efaa9 updated Polish translation (incl. credits) 2023-12-16 11:09:33 +01:00
gfgtdf
955a8bc445
use game_events.add in on_event.lua (#8082)
use game_events.add in on_event.lua

previously on_event.lua and game_events.add had separate priority lists, so that independent of the priority parameter (which both game_events.add and on_event.lua now support) on_event.lua events were always executed first. 

The set_undoable(true) call is there to match the previous behavior of on_event.lua where events implemented via on_event were undoable by default.
The higher default priority of 0.5 is there to match the previous behavior of on_event.lua where events implemented via on_event.lua were always run before wml events.
2023-12-15 21:28:45 +01:00
Pentarctagon
6322ca8bc8
add a bunch of resistance ability tests (#8105) 2023-12-15 09:59:01 -06:00
newfrenchy83
f5c6402ed1 Fix [resistance] without max_value bug
Fix https://github.com/wesnoth/wesnoth/issues/8092 issue.

If none [resistance] ability of the list contain max_value, then [resistance] must work without max_value defined by default.
2023-12-14 17:12:44 -06:00
Subhraman Sarkar
f1f67ae5df
Add functionality to Time Schedule Editor (#8066)
selected schedule will write to utils/schedule.cfg on scenario save

HOTKEY_EDITOR_CUSTOM_TODS is disabled unless user loads scenario

custom_tod:Preview button and associated callback added.

editor:translatable attributes now written with leading underscore

editor:support for multiple custom time schedules
2023-12-14 17:12:07 -06:00
gfgtdf
99399a2b26 allow units.remove_modifications to remove multiple types
previously it needed multiple calls to remove multiple types of modifications (which could be slow since each call involves a full rebuild of the unit).
2023-12-13 17:01:28 +01:00
gfgtdf
81145470c3 wc: fix a comment 2023-12-13 17:01:28 +01:00
gfgtdf
294e9a8d5c wc: small mapgen refactor
It doesn't really make sense that the code sometimes uses the lua variable enemy_power and sometimes
the wml variable. I think the original intent was to make it always use the lua variable but then it was noticed that the lua varialbe is not available in the first scenario
2023-12-13 17:01:28 +01:00
gfgtdf
ec0457790c wc: remove unused parameter 2023-12-13 17:01:28 +01:00
doofus-01
b167c8db8c
1.17/1.18 - UtBS blowgun icon (#8067)
* update and rename blowgun attack icon to avoid core image cash (fixes #7907)
2023-12-10 19:22:12 -08:00
doofus-01
c5c92c2afd
1.18 - Sprite updates to Ravens and Ants (#8089)
* fix raven SE sprite wings

* revisions to fire ant sprites to make more distinct from each other

* fix flame positioning

* minor soldier ant sprite update

* add IPF arg to MISSILE_FRAME_FIRE_BREATH for use in fire ants

* update copyrights.csv
2023-12-10 18:28:08 -08:00
Steve Cotton
30b91ad902 EI S04b: Avoid using a macro in a translatable string
The required number is already in a WML variable, herbs_needed. However, the
string is used in an `[objective]` tag, which means we're not necessarily in
an ActionWML block when it's shown, and thus can't use the Lua API to look up
plural strings. Instead, brute force it by making 6 separate strings.

Also, use the mainline `ALTERNATIVE_OBJECTIVE_CAPTION` macro instead
of a campaign-specific translatable string.
2023-12-10 22:53:14 +01:00
Steve Cotton
29d21434c1 EI S04b: use en_US spelling for the scenario id
* S04b start-of-scenario saves since 1.17.21 will be broken
* S03 mid-scenario saves since 1.17.21 will show a warning,
  and players will only be able to go west
* Saves from earlier versions are already broken by the campaign rewrite
2023-12-10 22:53:14 +01:00
Steve Cotton
b63a5025e8 Fix the textdomain for the regeneration unit tests
The msgid "test-regenerate" was leaking into wesnoth.pot,
this was seen when running a pot-update locally.
2023-12-10 03:10:10 +01:00
pentarctagon
16ccaefc86 Test multiplying by a fractional value. 2023-12-07 00:07:33 -06:00
Pentarctagon
0ec7048a02
add a bunch of regenerate tests (#8079)
mostly the same as the heals tests, since they're basically the same ability with different defaults.
2023-12-05 23:15:26 -06:00
Jonathan-Kelly
978cf98c18 WoF: fix macro argument in translatable string 2023-12-05 13:37:54 +01:00
Gunter Labes
5cb60d7f2f
Fix description and formatting 2023-12-05 13:34:43 +01:00
Jonathan-Kelly
d41a2f986e WoF S6: weaken player allies 2023-12-04 11:05:51 -06:00
Pentarctagon
87ed0d0339
Add a bunch of tests for heals. (#8074)
Covers only attributes, not filters.
2023-11-30 11:09:52 +01:00
Gunter Labes
1d0638b048
Use a single dot for the extension 2023-11-28 13:40:13 +01:00
Gunter Labes
05b4db8ce3
Create and remove symlinks instead of moving addons back and forth 2023-11-27 20:55:35 +01:00
Gunter Labes
0d3c00b13b
Remove outdated and not that useful test 2023-11-27 19:40:04 +01:00
Gunter Labes
2ae0f67d34
Include themes dir to support add-ons using mainline theme macros 2023-11-24 21:13:24 +01:00
Gunter Labes
0722356699 Remove unused RESIST_DAMAGE macro 2023-11-24 19:28:58 +01:00
Tommy
1fa8946eb1 Update title screen widget blur when closing preferences dialog.
It won't always be necessary, but it's only one frame to render.
2023-11-23 12:30:35 +13:00
pentarctagon
9559b07292 1.17.23+dev 2023-11-20 11:32:41 -06:00
pentarctagon
eda0ed3e16 1.17.23 2023-11-20 11:31:45 -06:00
pentarctagon
23c756c7f3 pot-update and regenerate doc files 2023-11-20 11:25:52 -06:00
Steve Cotton
5e06ceeb52 UtBS: Mention the campaign mechanics in the campaign description
Let players see what to expect when looking through the campaign menu, instead
of only giving players this information after they start the campaign and have
no clear or quick way to return to the main or campaign selection menus.

The preceding translatable string includes trailing newlines, but is the same
as 1.16. So I've left that as-is, while using a separate non-translatable
string for the new string's newlines.
2023-11-20 18:12:36 +01:00
Jonathan-Kelly
e30f270164 WoF: list unique mechanics in campaign description 2023-11-20 10:05:54 -06:00
Jonathan-Kelly
03f7923262 Allow recruited drake units to be female
This will activate the long unused female drake names list and name generator. Since drakes are a reptilian species like the naga, there is no need to create additional sprites to represent both of their sexes.
2023-11-20 09:42:49 -06:00
Jonathan-Kelly
32f6dda5de Add female unit name strings for drake race
As with the naga race, adds a translatable string for female drake units. This is for languages which have no neuter gender applicable to unit names.
2023-11-20 09:42:49 -06:00
Hejnewar
2b4234afd7
Remove Saurian Seer and Soothsayer from the leaderpool
Reason: Saurian Seer and Soothsayer have 7mp
2023-11-19 22:36:51 +01:00
Nils Kneuper
24a0da4a9f updated French translation credits 2023-11-18 09:50:41 +01:00
pentarctagon
e9588d755d [filter_specials] -> [experimental_filter_specials]
Since it calls into the same code as [filter_ability] did.
2023-11-17 17:41:41 -06:00
newfrenchy83
b54a901ff3 rename [filter_ability(_active)] to experimental_ability
because it is experimental the tag of filter is changed except for [overwrite][filter_specials]
2023-11-16 01:05:56 +01:00
newfrenchy83
44f7baf48f UtBS S02: Beach Sand is a dehydrating terrain
all terrain sand should be deshydrating terrain.
2023-11-15 19:56:59 +01:00
Steve Cotton
f1807e03d3 New unit test for UtBS-style [heals] with a filter
The ability's code in UtBS hasn't changed since 1.16, but there's now a bug about
healing sometimes not working in UtBS S02. The new test was written to check
for an engine bug when a healer has two units next to it, only one of which
passes the filter; although it's passing, it seems reasonable to keep the test.

Also, use `{ASSERT ...}` for better logging in the old healing test.
2023-11-15 17:45:58 +01:00
Gunter Labes
8b111a2a76 Avoid accessing data of potentially killed unit
Fixes #8019.
2023-11-12 22:12:17 +01:00
Dalas121
2630b5bb63
EI - Sentinel Shield Bugfix (#8033)
* Update items.cfg

* Update items.cfg
2023-11-10 19:16:05 -08:00
newfrenchy83
9474525612
check alternative_type and replacement_type when filtering on type
Also move them from being attributes of [damage] to [damage_type], to avoid infinite recursion when determining what the damage type should be.
2023-11-10 16:35:57 -06:00
Elvish_Hunter
47fec1e90f GUI.pyw: increased starting window size to 1024x600 2023-11-10 21:02:52 +01:00
Wedge009
559aacbf65
wmltools GUI review (#7971)
* Run auto-format

* Avoid broad exception handling.

* Remove unnecessary reference to self.

* Tidy imports.

* Remove redundant brackets.

* Narrow exception handling on unrecognised locale.

* Simplify command construction.

* Simplify command construction.

* Avoid shadowing.

* Spelling corrections.

* Reviewed argument parsing:
* Average user probably won't know that ISO 15897 refers to POSIX locale names.
* 'default' probably isn't an accurate description of the entered locale so change to 'user'.
* Remove the hard-coded usage text - the default usage string from the arguments list is sufficient.

* Use title case for menus as per UI style guide.

* Avoid abbreviation for UI text and add translation notes.

* Reviewed text for the tabs representing options for each tool.

Also removed forced new-lines, which I think are unnecessary.

* Consolidate strings to allow for translation sharing.

* Add translation note

* Use title case for titles.

* End sentences with full-stop.

* Title case for titles, translation note, full-stop.

* Abbreviated error message sufficient - consistent with other error messages.

* Clarify file vs file name.

* The translations directory is referenced regardless of whether the user has specified a locale or not, so put the check for the translation directory outside the user-input condition.

* The function isn't just for the user-specified locale, it steps back to the system locale if no user-input is given for the language.

* Clarified the reason for the code duplication in the set-up for system locale.

* Use en_US for commentary.

* Treat 'normal mode' as just one string.

* Replace empty place-holder with numbered indexes to work around gettext limitation.

* Correct typography.
2023-11-10 11:55:22 -06:00
Elvish_Hunter
cdd05db833 GUI.pyw: added basic support for the ttkthemes library 2023-11-10 16:59:28 +01:00
Gunter Labes
60f58c9694
Allow any key in dummy ability tags
super="units/unit_type/abilities/~generic~" isn't quite accurate since there are a lot of keys/tags in there that may not mean anything for dummy abilities. Probably doesn't hurt to expect they work like in mainline though.
2023-11-05 19:08:31 +01:00
Tommy
1dfbaacf68 Additional commentary on zoom_levels
Levels have been normalized a little to scale smoothly. This combines
the old 1.25x and 1.5x zoom levels into a new ~1.41x zoom level.
Others are more-or-less unchanged, other than modification for the
requirement that scales are divisible by 4.
2023-11-06 00:34:44 +13:00