28642 Commits

Author SHA1 Message Date
Elvish_Hunter
1be1ba4282 Fixed {IS_HERO} to prevent loss of hero ellipse when leveling up 2022-07-27 16:18:06 +02:00
Celtic Minstrel
e08451517a Fixup some event deprecations
No functionality change, just documentation
2022-07-26 00:08:00 -04:00
Celtic Minstrel
26f977c9b2 PUA: Fix Lua error when a unit is recruited
Fixes #6897
2022-07-26 00:05:29 -04:00
Celtic Minstrel
53b6f892dc That just... doesn't even do anything... 2022-07-26 00:03:17 -04:00
doofus-01
a513a82e9f
1.17 (test scenario) out-of-hex unit animation tests (#6878)
* out-of-hex unit animation tests (id=anim_tester_ooh)
2022-07-24 20:22:47 -07:00
doofus-01
2327f5c81b
1.17 human magi sprite cleanup (#6906)
* fill semitransparent pixels

* sprite palette cleanup
2022-07-24 17:28:14 -07:00
doofus-01
8e6abab897
merfolk sprite palette cleanup (#6904) 2022-07-24 13:03:12 -07:00
doofus-01
e8d451bbd5
1.17 dwarf sprite cleanup (#6902)
* fill semitransparent pixels

* sprite palette cleanup
2022-07-23 21:30:49 -07:00
doofus-01
346e74697f
1.17 drake sprite cleanup (#6901)
* fill semitransparent pixels

* drake sprite palette cleanup
2022-07-23 18:33:14 -07:00
Discontinuum
6991fcf5a8 Fix the description of concealment
It affects all villages, water villages included
2022-07-21 18:21:15 +02:00
Pentarctagon
78764ccd58
1.17.6+dev 2022-07-19 19:31:18 -05:00
Pentarctagon
ab8fe65b83
1.17.6 2022-07-19 19:30:24 -05:00
Pentarctagon
765681335a
pot-update and regenerate doc files 2022-07-19 19:26:27 -05:00
Gunter Labes
1a49e91b0a
Schema: Use correct type 2022-07-19 15:35:18 +02:00
Gunter Labes
7c021b73cb
Schema: Add missing modify_unit_type keys 2022-07-19 15:22:36 +02:00
Steve Cotton
2e28ed4617 Schema: the [fire_event][data] tag is optional
Fixup for 715cf386.
2022-07-19 13:09:29 +02:00
Celtic Minstrel
715cf3864e Add missing tag in the schema 2022-07-19 02:10:02 -04:00
Celtic Minstrel
7e234f8833 Replace deprecated usages of on_event() 2022-07-18 21:56:42 -04:00
Celtic Minstrel
5a184bbb40 Split wesnoth.game_events.add into multiple functions
Basically this means each of the call modes of the old function is now a separate function.

- add_repeating and add_menu take an ID and a function
- add_wml takes variable substitution setting and a config
- add takes the full options table
2022-07-18 21:56:42 -04:00
Celtic Minstrel
42889232ea Update schema for the new [event] options 2022-07-18 21:56:42 -04:00
Celtic Minstrel
19c62a083e Update [remove_event] to use new API 2022-07-18 21:56:42 -04:00
Celtic Minstrel
8a72206f02 Unit tests for the new filter options 2022-07-18 21:56:42 -04:00
Celtic Minstrel
245cd57d24 Unit tests for each way of assigning an action to an event handler 2022-07-18 21:56:42 -04:00
Celtic Minstrel
8aa2ee74a2 Move the event firing functions to wesnoth.game_events
* These functions take the full event data config as the final argument, rather than just the weapon info subconfigs.
* The [fire_event] tag now supports a [data] tag that can add additional data to the event, for example damage_inflicted. The [primary_attack]  and [secondary_attack] tags are still supported and are not deprecated.
* wesnoth.current.event_context now has a data child which holds the full event data. It still duplicates common info (weapons and damage inflicted) in the same way as before.
2022-07-18 21:56:42 -04:00
Celtic Minstrel
8cd1332630 Enable setting an arbitrary Lua function as an event handler.
Unlike the old wesnoth.game_events.on_event hook and the "convenient" on_event() wrapper for it, this new functionality supports all of the features of WML events, with the sole exception of serialization, since it's not possible to reliably serialize a Lua function.

This commit also divorces menu items from the event that they trigger. The undocumented wesnoth.interface.set_menu_item function no longer adds an event for the menu item; the caller needs to separately register an event using the new functionality.
2022-07-18 21:56:42 -04:00
doofus-01
58403574d5
ghost sprite updates (#6881)
* base image for ghost that is not part of standing anim

* nightgaunt animations
2022-07-17 14:13:28 -07:00
Steve Cotton
f2ef939352 Fix whitespace 2022-07-16 18:32:03 +02:00
Pentarctagon
265d3972da
Well clearly this doesn't do anything... 2022-07-16 09:59:55 -05:00
Descacharrado
91983c8c87 TSG S4 Fixed replay OOS on victory event 2022-07-15 11:52:36 -05:00
Tommy
8144c06389
Add new [screen_fade] WML action (#6864)
* Add new [screen_fade] WML action

It takes (for now) the arguments:
 * red, green, blue = values between 0 and 255
 * alpha = value between 0 and 255
 * duration = time in ms over which to fade

The game display is faded to the given colour over the duration.
It will be left with an overlay of that colour and alpha until
a screen_fade to 0 alpha is performed.
2022-07-15 09:32:19 -04:00
Tommy
90224728c1 Fix "def" label width in default theme
Fixes #6872
2022-07-15 13:38:51 +12:00
Tommy
26ae5a6fb0 Make blue fires in test scenario more obviously blue 2022-07-13 16:33:09 +12:00
Tommy
fd8068ddc9 Remove comment about fire animation in test scenario
This method of item animation is unsupported. Ref GH#1219
2022-07-13 16:32:25 +12:00
Wedge009
a6c57d014d Test scenario: Use progressive syntax for fire animation
[ci skip]
2022-07-13 13:11:00 +10:00
mattsc
2424d5705f Micro AI CAs: add handle_user_interact calls 2022-07-12 22:57:16 -04:00
mattsc
c7b3393a9d ai_helper: add handle_user_interact calls 2022-07-12 22:57:16 -04:00
mattsc
b1b521f582 Lua AI CAs: add handle_user_interact calls
Insert these calls in loops that do expensive calculations for the CAs of the default and experimental AIs.
2022-07-12 22:57:16 -04:00
doofus-01
be14c5ab35
1.17 Loyalist sprite updates (#6803)
* update swordsman sprite and anims

* update royal guard sprite and anims

* update pikeman sprite and anims

* update lieutenant sprite and anims

* update sergeant sprite and anims

* update halberdier sprite and anims
2022-07-10 18:03:11 -07:00
doofus-01
09fe5a19fd
Adding Amorphous to credits
for the swordsman attack animation.
2022-07-10 17:12:13 -07:00
mattsc
6ed684af73 move-to-any-enemy CA: stop eval if no enemies
Otherwise there is an error caused by one of the sort functions later in the code.
2022-07-03 06:48:47 -07:00
Luis Miguel Iglesias Sánchez
65515848ef
Fixed replay OOS by moving victory event to synced event (#6676) 2022-07-03 01:02:36 -05:00
Descacharrado
21e22fad97 Fixed Warden’s and Arbiter’s animations popping on water tiles 2022-07-02 16:39:18 -05:00
mattsc
90f1c01f41 AI: improve efficiency of move-to-any-enemy CA
The new method avoids a lot of path finding that the previous method did, esp. on large maps with many units and/or enemies, leading to significant speed improvements in some cases.

This fixes #6504
2022-07-01 18:56:00 -07:00
Pentarctagon
08cc17ac1a Put this in the right textdomain. 2022-07-01 10:21:39 -05:00
Pentarctagon
e3fbf930f3 Whitespace fixup. 2022-07-01 10:21:39 -05:00
Pentarctagon
536eaa67b4 Move hero string macro text into their definitions. 2022-07-01 10:21:39 -05:00
Pentarctagon
b15c3420d3 Remove silly GUI macro. 2022-07-01 10:21:39 -05:00
Pentarctagon
0ca5a97d1f Move mainline string macro text into various definitions. 2022-07-01 10:21:39 -05:00
Pentarctagon
d7fa23abc5 Move effect string macro text into various definitions. 2022-07-01 10:21:39 -05:00
Pentarctagon
df99280274 Move artifact string macro text into artifact definitions. 2022-07-01 10:21:39 -05:00