82410 Commits

Author SHA1 Message Date
Gunter Labes
4774505c8c
Skip notification job if not set up 2023-08-23 14:22:49 +02:00
newfrenchy83
a6883aabe0
Update list of boost modules 2023-08-21 15:03:38 +02:00
Pentarctagon
8bc5d7b72f
address codeql issue (#7832) 2023-08-20 19:45:47 -05:00
Pentarctagon
e90db4a276 1.17.20+dev 2023-08-19 21:05:00 -05:00
Pentarctagon
347745f19c 1.17.20 1.17.20 2023-08-19 21:04:11 -05:00
Pentarctagon
f7bbb10ffb pot-update and regenerate doc files 2023-08-19 21:01:29 -05:00
Pentarctagon
828251dc86 changelog_entries 2023-08-19 20:55:34 -05:00
Steve Cotton
1836530ba6 Fix a crash in :inspect when switching from page 2 to a different item
Switching to a different item cleared the data, but didn't clear the
cache of where the page breaks are located. The subsequent call to
`get_data_paged(int which_page)` has a bounds check for the page number,
so it's sufficient to just clear the page breaks, which is already ok
as it resets the object to the same state as a newly-created instance.

Forward-ported but currently untestable in master, as the page-selection
buttons are only shown when there's a large amount of text, which triggers
the known regression (the credits-crash bug).

(cherry picked from commit 7cb5f09bcf0de4b5a2cc26a593cffa2d5cfbcd14)
2023-08-19 19:02:26 +02:00
Pentarctagon
a5cd9d02eb Add label description to dialog. 2023-08-19 10:13:24 -05:00
Pentarctagon
d4950d9f83 Don't show the add-on selection dialog on editor start.
Fixes #7810
2023-08-19 10:13:24 -05:00
Jonathan-Kelly
9460507218
Add game logic to King of the Hill and revise map (#7792)
A side with a leader holding the hill keep gets bonus gold each turn, A treasure chest which only a leader can unlock further rewards the first player to take the hill. Each side gets two leaders. If one dies then another can be "recalled" (recruited) from the recall list at its full unit cost. Computer players will try to take the hill with one of their two leaders.
2023-08-19 11:50:02 +02:00
Jonathan-Kelly
14c7382675
Add range support for [micro_ai]side= (#7853) 2023-08-18 20:04:05 -04:00
Pentarctagon
83ab05532a Revert "use non-legacy functions."
This reverts commit a880f01a3153f74bafa3fb8a557e8e9abaacad09.
2023-08-18 12:33:56 -05:00
Pentarctagon
a880f01a31 use non-legacy functions. 2023-08-18 10:45:13 -05:00
Pentarctagon
c6a2dc9317 update INSTALL.md. 2023-08-18 10:04:12 -05:00
Pentarctagon
7ce1bf9f7d Check for correct openssl version. 2023-08-18 09:50:41 -05:00
Pentarctagon
182d0ff548 Compile fix for boost 1.83.
Fixes #7849
2023-08-17 23:16:09 -05:00
Jonathan-Kelly
234060e08e Cut hardcoded restrictions on scenario settings
And widen the corresponding 'soft' coded limits for the multiplayer scenario creation screen.
2023-08-18 01:02:22 +02:00
newfrenchy83
985ea1113a
Fix indentation in schema 2023-08-17 21:38:56 +02:00
Gunter Labes
5ba95c85fe
Merge note into description
Restore text_alignment documentation that got lost in 6389c1e.
Add documentation for can_shrink missing from adb5ef9.
Update documentation for link_aware missing from 7188781.
2023-08-17 17:07:53 +02:00
Hejnewar
07a64d4603
Arcane Resistances Rework
The basis for this rework is lowering the extremes in acrance resistances between units and factions. That allows for more free usage of arcane damage and helps with balance of games in which high levels are way more frequent than in standard default 1v1 or 2v2.
2023-08-17 14:25:59 +02:00
Hejnewar
f94bf19a0e
Fix song verse ability for UtBS 2023-08-17 14:20:30 +02:00
Elvish_Hunter
1693c0e0eb GUI.pyw: add a 'cancel' button to avoid running the tools on the core directory
Fixes #7728.
2023-08-16 23:06:37 +02:00
Gunter Labes
ab5475172e
Error on #ifdef/#ifhave without argument 2023-08-16 22:25:31 +02:00
Pentarctagon
8f74a27b90 update steamrt base image 2023-08-15 12:53:58 -05:00
Gunter Labes
4375ec4ff1
Remove confusing space 2023-08-15 15:00:25 +02:00
Gunter Labes
6bcffe41a7
Fix indentation 2023-08-14 20:57:10 +02:00
doofus-01
811a2c5b05
make soldier ant sprite a little more distinct from giant ant (#7845) 2023-08-13 20:11:52 -07:00
Charles Dang
5f88022323
Cleaned up last use of boost::mpl (#7843) 2023-08-13 16:22:56 -04:00
Nils Kneuper
48998ef5d9 updated Japanese translation 2023-08-13 00:48:58 +02:00
Steve Cotton
ec3c2af9e6 AToTB: Remove the instant-communication amulets
Having these in canon felt like a plot hole in other campaigns. If an
apprentice mage could make these amulets circa 350 YW then every village and
border-fort should have them, but Wesnoth's storylines work better if a
messenger on horseback is the usual method of long-distance communication. For
example, TSG is about a commander sent to discipline a lazy outpost, only to
find that they should have brought reinforcements. When it's the enemy trying
to communicate, DM S21 and UtBS S08 both involve stopping the messengers.

This changes the intro to have a beacons for communicating with the trade
caravans, I'm leaving it ambiguous whether it's a smoke signal or a fire
signal. Fire beacons might make more sense if the village sees the caravan's
campfires at night and, in normal usage, light the beacon to trade.

While this adds beacons to canon, they're an ancient technology with a limited
range and very limited bandwidth. There are easy plot reasons not to set
beacons up, such as the costs of having people watch for and maintain them,
there are easy plot reasons why they don't work on a given day, such as
weather, and there are easy plot reasons for attempted communication to be
ignored by assuming that it's a fire for a different purpose.

Previously suggested in https://r.wesnoth.org/p669889 .
2023-08-12 19:51:28 +02:00
newfrenchy83
ccdeaef4fa fix self-detecting unit issue in abilities [affect_adjacent] and [filter_adjacent]
when selecting a unit with an active ability only when adjacent to another, it marks active when the cursor is placed next to it

and with https://github.com/wesnoth/wesnoth/pull/7805 it's the problem of displaying the halo with an ability that only affects adjacent units, in this case the owner briefly displays the halo when he moves to side of a unit meeting the conditions
2023-08-12 12:03:45 +02:00
Pentarctagon
b4dd689f94 review comments 2023-08-11 20:53:45 -05:00
Pentarctagon
016358a512 persist last chosen add-on in the preferences 2023-08-11 20:53:45 -05:00
newfrenchy83
2a4a073da4 Add tests for ranges and negative values in ability filters
Changed to use "-" instead of ".." as the separator by octalot,
but I believe newfrenchy83 prefers "..".
2023-08-11 21:59:06 +02:00
Steve Cotton
cc8dddea6e Support negative numbers in ranges
Adds support for using these in the weapons and ability filters:
* "-1", which was previously treated as an parse error (no number before the separator).
* "-3--1"
* "-infinity" as the lower number in the range, provided a different upper number is given.

This treats "-infinity" (with no other number), "-infinity--infinity",
"infinity" (with no other number) and "infinity-infinity" as errors. It seems
unlikely that someone would intend to use a filter that can't match any
reasonable number.

The range "-infinity-infinity" will be parsed successfully. I don't see a use
case for that, but nor do I see a reason to add extra C++ to reject it.
However, it's not added to the schema, as I think it's good for the schema to
give a warning when someone creates a filter which will accept every value
(including accepting the default, so "-infinity-infinity" accepts the unset
value too).

Includes new unit tests for the C++ and the Lua stringx.parse_range functions.
The next commit adds more WML tests, but is kept separate to credit the author.

This started as a change to move common filter functions from unit.cpp to
somewhere that they could be reused for other config-based filters. In the
process a missing feature was found and added, the move is still included in a
single Git commit because the move was required in order to make these
functions accessible to the Boost unit tests.

Two CodeBlocks project files additionally get src/utils/any.hpp added,
which was in one of them but missing from the other two. I noticed because
these are alphabetically at the start of the src/utils file list.

Thanks to @CelticMinstrel for the review comments and Xcode project updates.
2023-08-11 21:59:06 +02:00
Gunter Labes
76246291cd
Simplify campaign rank display 2023-08-11 21:41:42 +02:00
Charles Dang
7d05b3f441 We don't like unnecessary heap allocations 2023-08-11 15:07:03 -04:00
Gunter Labes
d5c76f7cc5
Use DATA variable consistently 2023-08-11 21:00:20 +02:00
Gunter Labes
73f2a6e90a
Update key bindings extraction 2023-08-11 20:56:13 +02:00
Pentarctagon
6319401d60 Add new query for MP activity report
This gives a rolling count of how many players have played how many games, which is useful for seeing what player retention for MP is.
2023-08-11 12:24:18 -05:00
Gunter Labes
e863350260
Allow specifying the destination for the macro reference 2023-08-11 18:38:27 +02:00
Gunter Labes
9f4f356f81
Just print the commit subject line 2023-08-11 17:29:30 +02:00
Gunter Labes
43f7e5d9b8
Clarify documentation 2023-08-11 16:50:10 +02:00
Steve Cotton
20ec934658 Whitespace consistency 2023-08-11 08:37:23 +02:00
Ivo Julca
5ebc9a790a Implement event priority
For any given event name, events execute in order of decreasing priority.

Priority is a real number, and may be assigned via the `priority` attribute for
the WML [event] tag, or through the Lua APIs:

- wesnoth.game_events.add({priority = number})
- wesnoth.game_events.add_repeating(name, action, [priority])

Note that delayed variable substitution is not currently supported in the WML attribute.
2023-08-11 08:34:43 +02:00
Gunter Labes
9887d0ca26
Run all tests even if some fail 2023-08-10 23:54:42 +02:00
Gunter Labes
8714f8e6bc
Run whole notification job only on push and failure 2023-08-10 23:27:17 +02:00
Gunter Labes
fac9504290
Allow notifications to work for PRs from forks 2023-08-10 10:38:55 +02:00
Gunter Labes
f9b480b6bb
Add IRC notification step to CI 2023-08-10 01:23:07 +02:00