Commit graph

29603 commits

Author SHA1 Message Date
newfrenchy83
99af904b29 Modify shema validation for more consistency
In the validation schema abilities-value in abilities.cfg contains not only the numerical attributes but also active_on and apply_to, while these two deniers are only used by [resistance], and the abilities used as weapons are validated by the schema validation of special weapons, and the abilities [leadership], [heals], [regenerate] and [illuminates] also use all numerical attributes.
2023-12-23 12:06:57 -06:00
doofus-01
b4d8318472 make wyrmlets more snake than dragon, clean up palettes 2023-12-23 04:08:55 -08:00
doofus-01
2e60d93f49 improve portraits for wyrm variations 2023-12-23 04:08:55 -08:00
doofus-01
359edef0ba make objectives more clear 2023-12-19 18:47:49 +01:00
doofus-01
9b6ade6507 make victory moveto area larger 2023-12-19 18:47:49 +01:00
Nils Kneuper
ec46da60b4 updated Polish credits entries 2023-12-19 15:46:53 +01:00
pentarctagon
23d7e3e7af add a comment. 2023-12-18 10:55:32 -06:00
pentarctagon
74e6f56d06 schema fixup. 2023-12-18 09:36:03 -06:00
pentarctagon
4080a6ebd0 max_value negative tests. 2023-12-17 23:42:35 -06:00
doofus-01
a96ba2e5de adjust layering bridges vs castles to put castle walls above 2023-12-17 19:15:49 -08:00
doofus-01
a9bb8588f8 touchups to some ant images 2023-12-17 19:10:52 -08:00
Pentarctagon
e94d4f0b7e
add a bunch of leadership ability tests (#8125) 2023-12-17 18:29:27 -06:00
pentarctagon
b5436a0576 1.17.24+dev 2023-12-16 21:11:49 -06:00
pentarctagon
ce9874868d 1.17.24 2023-12-16 21:10:37 -06:00
pentarctagon
575c255e3c pot-update and regenerate doc files 2023-12-16 21:03:14 -06:00
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