Commit graph

29603 commits

Author SHA1 Message Date
Pentarctagon
113056c9e1 1.17.13 2023-02-19 22:08:56 -06:00
Pentarctagon
42c4d22065 pot-update and regenerate doc files 2023-02-19 22:08:56 -06:00
Tahsin Jahin Khalid
41750e6380 achievements: add frames for use
use for UMC, MP content, mainline later on
2023-02-19 20:26:54 +08:00
Hejnewar
6632116caa
Quenoth Rework (#7349)
Hopefully making the whole faction more interesting and enjoyable to play. 

Co-authored-by: Steve Cotton <steve@octalot.co.uk>
Co-authored-by: nemaara <nemaara@users.noreply.github.com>
2023-02-18 00:33:48 +01:00
Celtic Minstrel
05d35442b6 Fix [harm_unit]alignment not accepting variables 2023-02-16 21:48:26 -05:00
Elvish_Hunter
59b6049f9f wmlxgettext: always use Unix file paths in .pot files
Fixes #7380.
2023-02-16 23:28:05 +01:00
Toranks
5a3a1b69ba
UTBS: Hide Minion and Spire XP bars (#7339)
A unit with no advancements has the XP bars hidden.

Other behavior of a unit with no advancements is unit-tested in
ec8ad5f26f06dc3219ccc5c44eb24edde0386dc6's "unit_no_advancements".
2023-02-15 09:09:46 +01:00
Tahsin Jahin Khalid
354afc3758
[Units] Move the Dwarvish Miner to core
Move the Dwarvish Miner unit to core from SoF
2023-02-14 21:02:36 +08:00
inferno8
e522cf426c use progressive notation for the waterfall animation code 2023-02-12 22:22:36 -06:00
inferno8
fe4234aa8c add waterfall animations to Isar's Cross (closes #7348) 2023-02-12 22:22:36 -06:00
inferno8
ad300586ef add Art Placeholder terrain 2023-02-12 22:22:36 -06:00
Tommy
06686e22e4 UtBS: Updated many things to use FLASH macros and screen_fade
Most of these should be fine, but some need verification for
correctness using the new effect. Some of the color_adjust values
were very specific and i am not sure they give the same result now.

Several effects could probably also be significantly improved using
the new screen_fade system, with a little work.
2023-02-12 10:29:35 -06:00
Tommy
e47aa3532b SotA:17: Use screen_fade for sacrifice fade-out
There is a problem that the skeleton reverts to the base frame
during the fade. Previously the skeleton was deleted so this was
not evident.
2023-02-12 10:29:35 -06:00
Tommy
dcf65fd7b9 Liberty:04: Use FLASH for surprise events
This needs checking for timing
2023-02-12 10:29:35 -06:00
Tommy
fb3c2ee61b LoW:16: Use FLASH_WHITE for potion drinking effect 2023-02-12 10:29:35 -06:00
Tahsin Jahin Khalid
b8b402722f Units: Giant Ant advances to Soldier Ant 2023-02-12 10:21:46 -06:00
Tahsin Jahin Khalid
547aab3896
WC: fix abnormal commander mechanic (#7284)
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2023-02-12 10:21:27 -06:00
Tahsin Jahin Khalid
4d092347db unit_tree: comment out [advancefrom] 2023-02-12 10:11:45 -06:00
Tahsin Jahin Khalid
2cd0e5db03 unit_tree: add missing defines 2023-02-12 10:11:45 -06:00
Toom
02cb4a9e81 Remove hp_bar_scaling and xp_bar_scaling from [unit] schema
#2913
2023-02-12 10:11:05 -06:00
Pentarctagon
f68d8cf980 Add achievements button to titlescreen. 2023-02-12 10:10:15 -06:00
spixi
9f5d58763e Add Scamperer portrait and align Giant Scorpion's 2023-02-12 10:09:49 -06: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
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
Pentarctagon
1bbe240f82 Revert "Don't interpret markup for achievement name."
This reverts commit 971656fca0.

No idea why I thought this made sense.
2023-02-09 00:00:03 -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
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
18838ecebc Give a better warning when amount isn't a number. 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
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
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
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
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
Toranks
cccd562cc5 Grüü apparition fixed 2023-01-26 07:36:39 +01:00
Toranks
c740160065 Fix HP lost with dehydrated on tooltip 2023-01-26 01:23:56 +01:00
Celtic Minstrel
77baa1efc7 Split unit abilities and weapon specials into separate files 2023-01-25 00:26:29 -05:00