81613 Commits

Author SHA1 Message Date
Nils Kneuper
ff2c7eb187 updated French translation 2023-02-11 11:14:25 +01:00
Nils Kneuper
1bbd9a6b75 updated Dutch translation 2023-02-11 11:13:14 +01:00
Nils Kneuper
6f5e71d30e updated Czech translation 2023-02-11 11:12:04 +01:00
Pentarctagon
e61fca0bf4
Small achievements cleanup (#7368)
* Move logic into lua engine code.
* Don't let use of limit decrease an achievement's progress.
2023-02-09 18:36:45 -06:00
Tahsin Jahin Khalid
f238a9e026 MP: typo fix in achievement 2023-02-10 02:51:31 +08:00
Pentarctagon
68fb0d5332 Make completed achievement name khaki colored part 2. 2023-02-09 12:42:58 -06:00
Tahsin Jahin Khalid
89361ba152
[MP] Add Survival Scenario Achievements (#7347)
1. Dark Forecast
2. Isle of Mists
3. Team Survival
4. ANL
5. ANL Mines
6. ANL Rescue
2023-02-10 02:31:33 +08:00
Tahsin Jahin Khalid
4f232c7265
Engine: make achievement title less bright gold (#7370) 2023-02-09 09:01:10 -06:00
Pentarctagon
1bbe240f82 Revert "Don't interpret markup for achievement name."
This reverts commit 971656fca0717191224c6bfaacfc5cb30ee877a3.

No idea why I thought this made sense.
2023-02-09 00:00:03 -06:00
Pentarctagon
4420ee3aae Make completed achievement name gold colored. 2023-02-08 23:41:41 -06:00
Pentarctagon
971656fca0 Don't interpret markup for achievement name. 2023-02-08 23:34:16 -06:00
Steve Cotton
80ce5e2a23 Delete an out-of-date comment in data/themes/default.cfg
The level isn't to the right of the alignment any more, the
workaround that the comment refers was removed in ca2eec45b9.
2023-02-08 09:01:52 +01:00
Steve Cotton
30525a0a2a Remove unused deprecation functions from wml_exception.cpp/hpp
Remove some unnecessary includes of wml_exception.hpp.

The last callers of these functions were removed in f545fbcbe8 and 4437691bdd,
and any potential future callers can use config::get_old_attribute instead.

Removes some translatable strings.
2023-02-07 14:18:12 +01:00
Toranks
3576817ec0
NR S07 - Arthian > Ro'Arthian typo (#7360)
* Arthian > Ro'Arthian typo
2023-02-06 09:19:22 -06:00
Pentarctagon
d3b6cf7b54 Allow playing a sound when an achievement is completed. 2023-02-05 21:29:04 -06:00
Pentarctagon
215f29541a Fix achievement progress bar still showing when completed. 2023-02-05 14:16:22 -06:00
Steve Cotton
3900419f92 Only call font::set_help_string() from the editor
Remove some dead GUI1 code, leaving the editor's palettes as the only
code that calls font::set_help_string. This function shows a tooltip-like
text at the bottom of the editor's screen, for example when the paint tool
is active it shows which terrains are assigned to the left and right mouse
buttons.

There is similar functionality in GUI2, for example when hovering over the
title screen's buttons, which is handled via event::MESSAGE_SHOW_TOOLTIP.

This cleanup is the groundwork for moving the label in the map editor so that
it doesn't always obscure the southmost hexes of the map. The implementation of
font::set_help_string() has moved during 1.17's refactoring (from CVideo
in 1.16 to floating_label in 1.17.12); the intention is to replace it with
editor-specific code in a later PR.

Checking that the code is dead
---

Nothing called widget::set_help_string, therefore the rest of the removed code
in the widget class was effectively dead.

For the menu class, nothing set item::help. I doubt it was ever used; it was
added in a commit titled "changes to wose stats" that presumably accidentally
captured some work-in-progess C++ changes too: e2597cbc83.

The menu class is now only used by the help browser. The complete set of .cpp
files that get recompiled after changing menu.hpp are:

* help/help.cpp
* help/help_browser.cpp
* help/help_menu.cpp
* video.cpp
* widgets/menu.cpp
* widgets/menu_style.cpp
2023-02-05 17:19:13 +01:00
Pentarctagon
18838ecebc Give a better warning when amount isn't a number. 2023-02-05 09:42:35 -06:00
Pentarctagon
97478c5bc0 Make last selected achievement group persistent. 2023-02-05 09:42:35 -06:00
Pentarctagon
7825de6a71 Have hidden achievements actually be hidden.
Also hidden_name and hidden_hint are no longer attributes of [achievement].
2023-02-04 21:40:02 -06:00
Steve Cotton
0a0263e54f Support [foreach]array=this_item, nested loops using the default name
Since a0ee38a49, the inner this_item was still in scope when the inner loop
writes changed data back to the outer loop's variable, which meant that
changes were silently ignored.

A lot of the changes in wml-flow.lua are just indentation because of the
extra block.
2023-02-05 04:34:23 +01:00
Steve Cotton
49ebbb9709 Make fix_whitespace complain about mixing tabs and spaces
Ensures that files either use tabs for indentation or spaces for indentation,
but don't switch between the two within the same file.

This doesn't fix the whitespace, it's a simple check to flag it up
on the assumption that it's better to use an editor or code formatter
to clean up the file.

Elsewhere in the CI we use the luacheck tool - while that can detect
mixing tabs and spaces in a single line's indent, it doesn't check for
inconsistent indentation within a file.
2023-02-05 02:22:53 +01:00
Severin Glöckner
384cb5d19a MP Thousand Stings Garrison: remove unit properties
Since the HP are at 1, remove also other properties such as attacks.
2023-02-05 00:21:26 +01:00
Pentarctagon
e3bb346b39 Add functionality for achievements to be partially complete.
Instead of being either complete or incomplete, achievements can now specify a value at which they will be considered complete. For such achievements that are not yet complete, a progress bar is added to the achievements dialog showing how close to completion the achievement is.
2023-02-04 15:43:28 -06:00
Celtic Minstrel
cbbd34a79e
Add new attacks_used key to [attack] (#7351) 2023-02-04 19:55:04 +01:00
Toranks
ec8ad5f26f
Unit tests to evaluate behavior with max_experience=0 and with no advancements (#7344) 2023-02-04 13:14:44 +01:00
Nils Kneuper
71ceac09b1 updated Spanish translation 2023-02-04 12:21:44 +01:00
Nils Kneuper
cfa515bd62 updated Polish translation 2023-02-04 12:20:04 +01:00
Nils Kneuper
a23971c03a updated French translation 2023-02-04 12:19:19 +01:00
Steve Cotton
4c22f736ec Store glib build log on build failure
The Windows CI builds are intermittently failing. Even though a prebuilt vcpkg
is already cached, it will sometimes choose to rebuild lots of packages anyway.
On some of those rebuilds, there's a failure when building glib.

On the times that it does fail, the failure is often enough glib that checking
the build log manually seems more reasonable than checking what failed.

An alternative would be to look at why it sometimes chooses to rebuild, but
that would mean remotely debugging a CMake config. I'm hoping the build log
will have a clear compiler error pointing to a race condition in the order that
packages are built.
2023-02-03 10:12:59 +01:00
newfrenchy83
ee0830f53f modify calling of unit_abilities::effect and get_composite_value()
in addition to simplify the calling of calculation function for int weapon specials, it also because an commit what i want push in a PR requre this function.
2023-02-02 20:27:09 +01:00
Celtic Minstrel
b2200cb573 Run whitespace fix on MacOS 2023-02-01 22:02:02 -05:00
Gunter Labes
7514654c3e
Generalize labeler patterns to cover any campaign 2023-02-01 16:14:37 +01:00
Steve Cotton
8e90a2616b Add game_config.cfg's show_*_orb to the schema, rename show_partly_orb
These keys are supported in game_config.cfg, but currently they're not used in
that file, instead falling back to the defaults in the C++.

The name show_partly_orb is inconsistent - in other places, including the WML
that's stored in the user's preferences file, it's called show_partial_orb.
2023-01-31 06:45:53 +01:00
Steve Cotton
88f13f32ff Remove the disengaged_orb_color preference
These are leftovers from the original implementation of the disengage orb,
when it was a new color for the single-color orb. During the review process it
became the two-color design, but these parts were left in.

The value of orb_status_helper::get_orb_color(orb_status::disengaged) is used
(both before and after this commit) by the minimap; this commit changes
get_orb_color to return the partial_color() directly. The result will be the
same as before, because disengage_color() returned the same as partial_color().
Prior to this commit that was done by giving both orbs the same value in
game_config.cfg. If the advanced preference to change orbs colors was used, the
value chosen for the partial orb was passed to set_disengage_color() too.
2023-01-31 06:45:53 +01:00
Jason Stephenson
bce0493f03
Fix #7337: Byte Compiler Warnings for wesnoth-mode (#7338)
Switch from obsolete Emacs Lisp functions to modern functions in order
to remove two compiler warnings.

Properly quote lambdas with #' to remove two more compiler warnings.
2023-01-29 12:14:59 -05:00
Tahsin Jahin Khalid
33ce739362 add changelog entry for PR7332 2023-01-30 00:52:04 +08:00
Tahsin Jahin Khalid
3be99abdd7
Add Sand Scamperer, level 0 scorpion/monster unit, which advances to Sand Scuttler
advances to Sand Scuttler
2023-01-30 00:48:42 +08:00
Nils Kneuper
9d1ae19e5a updated Portuguese (Brazil) translation 2023-01-29 10:06:29 +01:00
Nils Kneuper
e126b67fe2 updated Chinese (Simplified) translation 2023-01-28 10:00:29 +01:00
Celtic Minstrel
768c21bff8 Update changelog 2023-01-27 19:32:31 -05:00
Celtic Minstrel
32d084d30c Use a reload() function instead 2023-01-27 19:31:55 -05:00
Pentarctagon
3e46c68761 Add achievements to the github auto-tagger. 2023-01-27 18:05:14 -06:00
Celtic Minstrel
55e0597561 Fix F5 not reloading achievements 2023-01-27 09:26:17 -05:00
Celtic Minstrel
cc40d5c55b
Move the Merman Citizen and Brawler units to core (#7323) 2023-01-26 22:45:29 -05:00
spixi
ff5d8d023e Add Sand Scamperer 2023-01-27 00:46:35 +01:00
Steve Cotton
4997bc8ada CI: Make the Windows CI builds use separate caches
Looking at recent build failures, one of Debug or Release is using the prebuilt
vcpkg from the cache, and the other one is detecting it but then deciding to
rebuild many of the packages.

The build logs circa 8bd8c53f9887ae2440b9a4d29ec55655de08b519 are no longer
accessible, only the success/failure and time taken are still accessible.
Looking at build timings around those changes is inconclusive, however my guess
is that the CI is noticing that CFG is different between the two builds, and
that's forcing a rebuild for one of them.
2023-01-26 11:56:23 +01:00
Toranks
89dbd2d373 Delete redundant [recall] 2023-01-26 07:36:39 +01:00
Toranks
f231348900 Fixed indentation 2023-01-26 07:36:39 +01:00
Toranks
34a5cce2b0 Grüü on side 1
He changes later to side 4 on turn 7, this is only for narrative purposes
2023-01-26 07:36:39 +01:00