82410 Commits

Author SHA1 Message Date
Nils Kneuper
208b67692c updated Slovak translation 2023-10-21 11:59:48 +02:00
Hejnewar
2efa45801a
Update changelog.md 2023-10-21 01:36:45 +02:00
Hejnewar
d8abc5f43f
Fix RiPLB for Saurian Seer
...
2023-10-21 01:34:06 +02:00
Wedge009
93df584adb po hints
[ci skip]
2023-10-21 09:35:25 +11:00
gfgtdf
6882adbcb2
fix [store_reachable_locations] #7891 (#7970) 2023-10-20 22:39:11 +02:00
gfgtdf
0945c30efd
improve error message
Fixes #1507
2023-10-18 20:04:47 +02:00
pentarctagon
00f70f2c54 1.17.22+dev 2023-10-16 23:31:31 -05:00
pentarctagon
fec4f1771d 1.17.22 1.17.22 2023-10-16 23:29:23 -05:00
pentarctagon
3bfb54dd14 pot-update and regenerate doc files 2023-10-16 23:28:17 -05:00
pentarctagon
75c4aeb65a changelog_entries 2023-10-16 23:13:10 -05:00
Celtic Minstrel
f1b7d14f2a Add @daniel-santos to the credits 2023-10-17 00:10:03 -04:00
Celtic Minstrel
60998692a2 Update changelog 2023-10-17 00:09:04 -04:00
Daniel Santos
2578e9e2ef
Add lua mouse button event handler (#7952)
* Add lua mouse button event handler that can be consumed.
* Fix middle-mouse down/click not getting sent to lua

This is a flexible event handler mechanism to allow for more advanced
add-on features. It does not allow the add-on to consume the value
however, so there's no mechanism for the add-on to requrest the default
action not be executed.

We would normally deal separately with mouse down, up and click, with
the later being an event where the mouse has gone both down and up on
the same UI component. However, Wesnoth's code seems to allow a mouse up
on many UI components to serve as a click, so this implementation
follows that behavior.

This addresses issue #7949

The mouse handling code needs an overhaul, so this patch works with it
in it's current state in the best possible way. The revised code
attempts to restrict clicks to those events where a mouse went both down
and up on the same map tile. It is able to do this with the right mouse
button as well as X1 and X2, but must work as existing click events are
treated for now.

This means that "left click" is managed via the `left_click()` function
which occurrs at mouse down, "right click" via `right_mouse_up()` when
the right mouse button comes up, and the middle button's click behavior
is coded directly into mouse_handler_base::mouse_press() (so no function
is called) and "clicks" when the button comes down. The new
`on_mouse_button()` code will allow the mod developer to consume any
click event, preventing the default behavior, and also receive event
callbacks for up and down events, although the return value is ignored
for these calls and left and middle click occur on mouse down.
2023-10-17 00:08:00 -04:00
gfgtdf
c9e8a166aa
WC: Fix objects increasing hp not working.
The code keeps record of the previous hp to prevent unit:transform form changing it. But it reads it before the object was added which prevented the object from increasing the units hp.
2023-10-17 00:44:16 +02:00
gfgtdf
d5b7972c6f
WC: Fix error when too few artifacts are defined
Previously the lua could stop working when there were less than 9 artifacts defined in [world_conquest_data]
2023-10-17 00:34:25 +02:00
gfgtdf
8bbaba898d
WC: fix #7921 Random training per scenario
a free random training on easier difficulties should only be given in the first scenario. (Otherwise they'll accumulate to 5 free trainings at scenario 5.)
2023-10-16 23:25:13 +02:00
Steve Cotton
b13406c63e EI: Move the Horse Barrow Wight to the right dir, and fix a missing word 2023-10-16 20:48:07 +02:00
Steve Cotton
d16ad04830 Fix crash when mousing over a village in the terrain editor 2023-10-16 05:33:08 +02:00
Severin Glöckner
58e59ccb8c UtBS: run wmlindent 2023-10-16 03:09:23 +02:00
Severin Glöckner
98bea4637a EI: reuse strings for weapon names
[ci skip]
2023-10-16 02:24:01 +02:00
Severin Glöckner
81d65f62ed EI: inherit the already translated names
(which are identical, but in another textdomain)
2023-10-16 01:56:20 +02:00
Severin Glöckner
b2bf0d18e2 UtBS: ability names and descriptions
do explicitly not list verses as abilities
reformation of text
explain the mechanism as part of the 2nd/3rd attack

[ci skip]
2023-10-16 01:52:44 +02:00
doofus-01
c9182b952b
1.17 - Last-minute string cleanups (#7950)
* fix some Raven-related fluff

* small revision to fire ant egg fluff

* replace double-spaces after sentence with single-spaces
2023-10-15 16:08:21 -07:00
Celtic Minstrel
9183ee6791 Move the other game_events deprecations into the game_events file 2023-10-15 17:43:22 -04:00
AugustVesterbacka
3127629f59
Mousing over a village shows the owner side in the UI (#7920)
Added village owner flag and side icon to terrain info field
2023-10-15 14:51:48 +02:00
Steve Cotton
d80e4a3b03 Update the changelog, merge changelog_entries files
I haven't merged all the details about the new tags, as that can
go in the documentation on the Wiki instead.
2023-10-15 14:07:14 +02:00
newfrenchy83
532d17f958 repair detects non-existent default attribute value
Fix https://github.com/wesnoth/wesnoth/issues/7923 .when we want to detect an ability with value=0-20 and an ability with add=15 is present, this is detected because the system assigns a value of 0 when 'value' is not present, and so the system matches abilities that do not use 'value' or even no numerical value at all. it is therefore necessary to decide that the absence of an attribute is a non-correspondence to the criteria.
2023-10-14 20:14:51 -05:00
Celtic Minstrel
857d7e120a Undeprecate on_event() for now 2023-10-14 19:26:36 -04:00
Celtic Minstrel
38ae304725 Move Lua undo API into experimental 2023-10-14 19:26:36 -04:00
Celtic Minstrel
10d67aa82a Implement a new Lua API to the undo system 2023-10-14 19:26:36 -04:00
Nils Kneuper
1b0394fc72 updated Slovak translation 2023-10-14 10:43:11 +02:00
Nils Kneuper
163b2cccde updated French translation 2023-10-14 10:42:54 +02:00
Nils Kneuper
d5e42c13e9 updated Czech translation 2023-10-13 22:28:14 +02:00
Nils Kneuper
778e7ad6b8 updated Slovak translation 2023-10-13 22:26:46 +02:00
Hejnewar
6b2588fd7f
Update UtBS difficulty 2023-10-13 21:26:03 +02:00
Hejnewar
28d6618aa4
Final Balance Patch for 1.18 2023-10-13 21:14:08 +02:00
Jonathan-Kelly
ec5483be87
WoF: new campaign description (#7927)
* WoF: new campaign description

* Tweak
2023-10-14 04:15:48 +11:00
Steve Cotton
30eb439a27 Remove [filter_ability]type_value=
There are questions about how this filter should treat empty values, and the
use cases that we can think of can be implemented in other ways, for example,
if we want to look for big damage boosts, then we could filter for
`add=5-infinity` `[or]` `multiply=2-infinity`.

The simple answer seems to be to remove it from the API before we freeze for 1.18.
There's more discussion in issue 7944.
2023-10-12 15:31:45 +02:00
Steve Cotton
07c1f7805b Make the ability filter tests stricter
With the default first_time_only=yes then these events would be triggered at
most once even if the filter would have passed multiple times.
2023-10-12 15:31:45 +02:00
Gunter Labes
68c4974299
Changelog entry for f9fdd9758b9 (PR #7906) 2023-10-10 19:45:36 +02:00
pentarctagon
779af76eb4 copyrights fixup. 2023-10-10 12:20:23 -05:00
Kingofd
f9fdd9758b
Record and send chat message history before game start 2023-10-10 18:59:15 +02:00
Dalas121
ae79a2a561
EI Barrow Wight fix, licensing update - attempt #2 (#7940) 2023-10-10 09:03:38 -05:00
Gunter Labes
627244b0fd
Fix schema to actually allow an empty value 2023-10-09 21:36:14 +02:00
pentarctagon
000ba55eb1 copyrights update. 2023-10-09 11:54:44 -05:00
doofus-01
319123d60f
1.17 - Windows (Xo* embellishment) (#7930)
* Adding *^Exw terrain - "E" for embellishment, "x" for terrain type Xo*, and "w" for windows
2023-10-08 17:37:23 -07:00
doofus-01
015c0c3db8
1.17 - Jumping Spider (#7934)
* Jumping Spider added to monsters
2023-10-08 17:32:17 -07:00
newfrenchy83
b5805eca8f
Add priority and filter to overwrite specials (#7746)
using overwrite_specials alone means that we have only two possibilities, either one_side is chosen and in this case if the ability used as a weapon carrying the attribute is applied to the unit (apply_to=self), the other abilities are the same type applied also to 'self' not carrying the attribute will be overwritten, but those of the opponent with apply_to=opponent will be kept in the list; or else both_sides is chosen and all abilities of the same type that do not carry the attribute will be overwritten. To be able to use the attribute in abilities like [damage] for example, it is necessary to be able to be even more selective as for a 'charge' type leadership with multiply=2.5 but which must not be combined with the classic charge and without overwriting the aute [damage] as backstab, [overwrite_filter] to only match damage with apply_to=both and active_on=offense is then interesting.

adding priority allows you to select that it ability can use its overwrite_specials attribute while the others can be overwritten in the same way as an ability without the attribute. Finally, this system makes it unnecessary to limit the use of the attribute to abilities used as weapons but also to special weapons.
2023-10-08 10:09:31 -05:00
Nils Kneuper
3f73a70dab verify that the Welsh files update correctly 2023-10-07 12:48:17 +02:00
Nils Kneuper
d4115baa2d added Welsh translation 2023-10-07 12:38:52 +02:00