81539 Commits

Author SHA1 Message Date
Wedge009
2fa7c67277 Lingering reference to .png -> .webp 2023-01-02 13:40:32 +11:00
Wedge009
8ce7578adf Correct path to unit images. Resolves #7254. 2023-01-02 13:27:38 +11:00
Wedge009
7de9c9110a Replace deprecated terrain codes. 2023-01-02 13:23:28 +11:00
Wedge009
2b697742ce Resolve non-standard spacing.
[ci skip]
2023-01-02 13:07:39 +11:00
doofus-01
f579000862
Update changelog.md 2022-12-31 05:48:42 -08:00
doofus-01
cfe97f9070
1.17 more fauna work (#7244)
* fix mixed-up falcon attacks

* buff falcons, so they are more even with bats

* add more ants, reorganize ants
2022-12-31 05:46:15 -08:00
Elvish_Hunter
d4c8d08064 wmllint: improve [campaign] rank= validation message 2022-12-30 23:33:59 +01:00
Elvish_Hunter
c1a074ea41 wmllint: validate values of [campaign] rank= 2022-12-30 22:49:36 +01:00
Steve Cotton
7ddf691e13 Allow abilities.cpp to access units and teams earlier during play_controller::init
Partially reverts 6a21fdc6750a8342846ef18248517808316c4118
Fixes #5643
Fixes #7238

There's a bunch of global things that can be accessed either via global
pointers in the `resource` namespace, or via `display::get_singleton()`. The
singleton and these global pointers are set up in `play_controller::init`,
however there's a section where things are available via the global pointers
but the `display` singleton doesn't exist yet. During that time, checking
whether an ability is active can crash the game.

Removing the global pointers is a good goal, but detouring through a GUI class
to access the data causes its own problems.

The "has already been confirmed valid by both callers" comment is replaced with
an assert, because there's currently at least three callers.
2022-12-30 22:08:32 +01:00
doofus-01
9d48e0331a
1.17 move Sand Scuttler out of scorpion (#7236)
* move sand scuttler out of giant scorpion

* convert mainline campaign scuttler variation usage

* convert mainline MP scenario scuttler variation usage

* leave hidden, compatibility scuttler variarion
2022-12-29 20:41:21 -08:00
Steve Cotton
b9e4fdffb4 Update deprecation but postpone removal of the SPECIAL_NOTES macro
Units still using this in their descriptions will have the player-visible
header change from "Special Notes:" to "Special Notes (1.14-style, please
update to the new list format)".

The SPECIAL_NOTES macro was originally removed early in the 1.17 dev cycle.
That removal was reverted and postponed in the roadmap until Jan 2023, on the
grounds that it's a lot easier to test 1.17 when the big add-ons from 1.16 can
run on it.

In 1.16, UMC that hasn't upgraded yet already has a cosmetic bug - the help
pages of units still using the {SPECIAL_NOTES} macro will include duplicate
notes (assuming the expected usage of {SPECIAL_NOTES} as a heading in
[unit_type]description=, which is followed by old-style notes). These are minor
cosmetic bugs, which are expected to be removed as UMC gets updated.

That leaves the issue of what to do with the deprecated macro in 1.18. My
feeling is that we can easily continue to support the macro, albeit with the
cosmetic bug, so we should keep it for 1.18. However we could make it clearer
that the duplicated notes should be removed from the UMC.

This also removes some docs about NOTE_*s, those macros have already been
removed after being deprecated in 3568b5ff66ece00ec09f40059e552123f356d962.
2022-12-29 16:53:13 +01:00
Steve Cotton
e28f29b4ac Add unit tests for weapon-special calculations
Covers the math for [attack]add=, [attack]divide=, [attack]multiply= and
[attack]sub=. The behavior is the same in 1.16.

* 5 + 2 = 7
* 5 - 3 = 2
* 5 + 2 - 3 = 2. Yes it does, that's half of why this unit test exists ...
* 5 + 2 + 3 = 8
* 5 + 3 + 2 = 8
* 5 + 2 - (-3) = 7
* 3 * 3.34 = 10
* 3 * 3.334 = 9. ... and that's the other half of why this unit test exists.
2022-12-29 15:40:01 +01:00
Celtic Minstrel
e482be048b Minor LuaDoc fix 2022-12-28 15:03:53 -05:00
Pentarctagon
4218924c4a Fix copy/paste comment. 2022-12-28 12:08:09 -06:00
doofus-01
6e5cb055aa
1.17 minor updates to monsters (#7235)
* some elder falcon frames

* update to kraken portrait
2022-12-27 17:03:10 -08:00
Toom
034e489b19 Exclude nonvillage from outer_villages array 2022-12-27 08:16:50 +01:00
doofus-01
1603dea8f6
make north-breathing drakes face se instead of s (#7233) 2022-12-26 17:13:53 -08:00
doofus-01
17a95134ac
get elevation markers out of the mini-map (#7232) 2022-12-26 11:37:57 -08:00
doofus-01
381e95e6df
1.17 Terrain Help fixes (#7193)
* clean up SotA terrain aliases

* add help entry for terrain elevation in Map Editor topic
2022-12-26 05:13:55 -08:00
doofus-01
0aae92ff98
Update changelog.md 2022-12-25 21:14:43 -08:00
doofus-01
8e38cfd01a
1.17 some random Loyalists sprite updates (#7208)
* Spearman update

* Grand Knight update

* Cavalryman update

* General update
2022-12-25 21:12:18 -08:00
doofus-01
eee5d44e99
Update changelog.md 2022-12-25 17:56:06 -08:00
doofus-01
f9bd000a4e
dunefolk rover portrait (#7216) 2022-12-25 17:53:50 -08:00
doofus-01
2fa006f716
add forgotten kraken ink projectile images (#7229) 2022-12-24 17:54:55 -08:00
Celtic Minstrel
7d5fa80180
WML: Adjust the weapon selection logic for [kill] (#7196)
* WML: Adjust the weapon selection logic for [kill]

The previous logic simply did not make sense, especially for the secondary weapon.
For example, it would ignore the secondary weapon specification if the primary weapon was not found on the secondary unit, which does not make any sense.

The cases that this changes are:
- There is a secondary unit and a primary attack, but no matching attack was found. Previously it would use the default, now it pretends that attack exists.
- There is a secondary attack specified, but no primary attack, either because it was unspecified or because it didn't match any attack on the secondary unit

In both these cases, the animation runs as if a matching attack exists, rather than using no attack and choosing the default animation.

Adjust the log level too.
2022-12-24 16:52:57 +01:00
Nils Kneuper
c8701e2ef5 updated French translation 2022-12-23 14:01:09 +01:00
Nils Kneuper
8cadfa3814 updated British English translation 2022-12-23 14:00:05 +01:00
Nils Kneuper
d1df776f61 updated Czech translation 2022-12-23 13:58:46 +01:00
Nils Kneuper
c3dfcb26fe updated Arabic translation 2022-12-23 13:55:27 +01:00
Pentarctagon
5849a143c5 Fix undefined macro error. 2022-12-22 10:25:32 -06:00
Pentarctagon
128c0dacf9 dos2unix line endings. 2022-12-21 12:30:04 -06:00
Pentarctagon
30b55575e6 Add toplevel FilterWML tests folder. 2022-12-21 12:30:04 -06:00
Pentarctagon
129f5742fc Tests cleanup. 2022-12-21 12:30:04 -06:00
Pentarctagon
5eae1b6199 Reorganize unit tests. 2022-12-21 12:30:04 -06:00
Pentarctagon
ffbb1c0913 Try setting a more specific cache name 2022-12-20 15:18:21 -06:00
Toom
07dc953875
Escape < and > even if only one of them exists or if found multiple times (#7154)
* Escape < and > even if only one of them exists

In python negative index counts from the end, so without this change or another solution
"example with only < one side" would be converted to 
"example with only < one sid&gt;example with only < one side"

* Escape < and > even if found multiple times
2022-12-20 20:07:17 +01:00
Celtic Minstrel
73a1b46bbf Add real-number version of parse_range
Also use it in the Lua API.
2022-12-20 09:34:48 -05:00
Gunter Labes
2b47e63e8b
wmlunits: ignore a dependency on the addon itself 2022-12-19 16:16:35 +01:00
Wedge009
15b4ee9875 Spelling corrections and standardise spacing.
[ci skip]
2022-12-19 18:58:59 +11:00
Pentarctagon
2921124c10 Forgot changelog_entries again... 2022-12-18 08:13:23 -06:00
Charles Dang
ca83759ef0 Bump vcpkg baseline again to fix issue with images not loading in debug builds
T'was likely this fix https://github.com/microsoft/vcpkg/pull/28137
2022-12-17 22:26:01 -05:00
Pentarctagon
ec05dcd06d Wesnoth 1.17.11+dev. 2022-12-17 19:15:04 -06:00
Pentarctagon
ba8227e994 Wesnoth 1.17.11. 1.17.11 2022-12-17 19:14:04 -06:00
Pentarctagon
f45bd210d9 pot-update and regenerate doc files 2022-12-17 19:11:50 -06:00
Pentarctagon
f9a188ada3 Update changelog. 2022-12-17 13:52:17 -06:00
walodar
87b2508586 Fix WML for standing animations for Walking Corpse and Soulless introduced in b0d327ea3c78209397571f11773f056b272f496f (#7102). 2022-12-17 13:49:06 -06:00
Steve Cotton
a9d5c6ac6d Handle out-of-bounds side numbers in Lua's sync.evaluate_multiple
Change the C++ to show a Lua error instead of crashing with an assert.
2022-12-16 16:40:46 +01:00
Wedge009
b13ebab7ec Update change log for SoF S9 blocker.
[ci skip]
2022-12-16 18:59:03 +11:00
Wedge009
3980e40ed0 SoF: Convert Ias terrain codes missed in #7042.
Resolves #7210.
2022-12-16 18:54:36 +11:00
Tahsin Jahin Khalid
31a1dde0e7
[MP] elevation test: adjust scenario name and desc (#7205) 2022-12-16 14:50:46 +08:00