Commit graph

29603 commits

Author SHA1 Message Date
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
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
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
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
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
ec05dcd06d Wesnoth 1.17.11+dev. 2022-12-17 19:15:04 -06:00
Pentarctagon
ba8227e994 Wesnoth 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
walodar
87b2508586 Fix WML for standing animations for Walking Corpse and Soulless introduced in b0d327ea3c (#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
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
Celtic Minstrel
6d3dd6a175 Support as_type=weapon in [variable]formula= 2022-12-06 01:52:38 -05:00
doofus-01
047356afb9
Update about.cfg 2022-12-04 12:12:51 -08:00
doofus-01
555d5a930b
1.17 - a couple more monsters (#7152)
* Dragonfly

* Grand Dragonfly

* Dragonfly naiad

* move Kraken out of WoF and DW and put in core

* Update kraken sprite and animations
2022-12-04 12:00:48 -08:00
doofus-01
e22da0ea99
hills transitions for hex with small mountain catch-all rule (#7191)
fixes #7180
2022-12-04 11:52:53 -08:00
Pentarctagon
12a7f018e0 Document last batch of unit tests. 2022-12-03 23:29:47 -06:00
Elvish_Hunter
e3bf0ec1c3 Silence some wmlscope warnings 2022-12-03 21:35:13 +01:00
Tahsin Jahin Khalid
837045168c
Campaigns: Sync Delurin between HttT and Liberty
* HttT: sync Delurin with Liberty's Delurin

* Liberty: sync Delurin with HttT's Delurin
2022-11-30 18:27:38 +08:00
Ferk
46233658e3 Zoom-in using "+"
This adds "+" for Zoom-in as an additional hotkey (without removing the previously set value).

The "=" key doesn't seem to work when pressing it from a keyboard layout such as German Qwerty in Windows. It's also against the user's expectations that if we accidentally press on "minus" causing the map to zoom out, the expectation would be for the opposite operation to be "plus".
2022-11-29 18:03:16 +01:00
Steve Cotton
38fdf06fa9 Fix [special_note] duplication when unstoring units
The movetype's special notes were becoming a new note for the individual unit.

Clean up the documentation on some of movetype's functions, as they had
documentation in both the .hpp and the .cpp.
2022-11-29 11:40:11 +01:00
Celtic Minstrel
6876695e66 Support as_type=unit in [variable]formula= 2022-11-27 13:12:47 -05:00
Celtic Minstrel
516f043e89 Support name= in [lua] ConditionalWML 2022-11-27 13:10:41 -05:00
Steve Cotton
3d4812ebc8 Add a unit test for the preprocessor's #ifdef handling
This one's surprising, but it's the behavior of 1.16, so add a test for the
current behavior even though I wonder if it should change in 1.17.
2022-11-26 14:55:33 +01:00
Steve Cotton
710867e010 Add unit tests for interpolated event names and end_turn
Move `event_name_variable_substitution` to the top of the file, as it's testing
that the event triggers at all, before the tests that check which order the
events are triggered in.

The old `order_of_variable_events1` seemed to be a combination of two tests that
should exist, but the code didn't quite test either of them. This replaces it
with a new `order_of_variable_events1` and `order_of_variable_events3`.

Docs partially written by Pentarctagon, this started as a review comment
on the documentation PR.
2022-11-25 12:16:46 +01:00
Pentarctagon
a2491d3aa4 More unit test documentation. 2022-11-23 16:25:37 -06:00
Tahsin Jahin Khalid
0afe343c50
HttT: Kalenz now has traits loyal, and resilient (#7142)
Elven Supremacy
2022-11-22 09:26:20 +08:00
Pentarctagon
6c7dd0a25b 1.17.10+dev. 2022-11-19 23:38:26 -06:00
Pentarctagon
79b2385140 1.17.10. 2022-11-19 23:38:25 -06:00
Pentarctagon
0118664f0f pot-update and regenerate doc files 2022-11-19 23:38:25 -06:00
doofus-01
94cc48427f
1.17 dunefolk falconer portrait (#7061)
* adding dunefolk falconer portrait
2022-11-19 16:45:43 -08:00
Tahsin Jahin Khalid
fa21978458
HttT S14: give Relgorn his missing traits
Note: he only appears for 1 scenario, and in an ending cutscene. Does not affect balance or difficulty.
2022-11-19 15:26:24 +08:00
Steve Cotton
e3deff8bfd Make undo work again, undeprecate on_event()
Fixes #6898. The issue is that non-WML events added through the new events API
always disable undo with no equivalent of WML's `[allow_undo]`. The long-term
fix is to add a way to do that; however until that's available then listeners
for `moveto` need to use the old `on_event` API. The old `on_event` API can't
be deprecated yet, and this is enforced by our unit tests (the build fails if
there are unexpected deprecation warnings during the tests).

Reverts most of 7e234f8833. Does not revert files
that only listen for non-undoable events such as `die` or `new turn`.

Reverts the deprecation part of #5663's 8cd1332630.
2022-11-19 05:23:30 +01:00
Tahsin Jahin Khalid
f33480e3c0 HttT S14: give Relgorn his missing traits 2022-11-17 15:58:24 +08:00
Jonathan-Kelly
eac522597d Slightly reduce merfolk forest and hill move cost
From 5 to 4. Makes moving them from one water body to another somewhat less tedious. Likewise makes merfolk units a bit more viable on maps with separated waterways.
2022-11-16 22:39:29 -06:00
Tahsin Jahin Khalid
06297cfdc6
Make Nightblade the default advancement for Slayer
Make Nightblade the default advancement for Slayer
2022-11-17 12:03:26 +08:00
Wedge009
ced504a97f LoW S9: Remove standard enemies-defeated as a victory condition.
Resolves #7130.
2022-11-16 11:54:01 +11:00
Jonathan-Kelly
1ba0a11a18 Make Nightblade the default advancement for Slayer 2022-11-14 17:22:25 -05:00
Wedge009
bdc236e0a0 Disable saving of replays for story-only scenarios.
Resolves #6180.
Resolves #7123.
2022-11-14 19:54:05 +11:00
doofus-01
b0d327ea3c
1.17 - standing animations for zombies (#7102)
* standing animation for default walking corpse

* mounted (horseman) WC standing anim

* default soulless standing animation

* mounted soulless standing anim
2022-11-13 16:47:22 -08:00
Pentarctagon
b1587223a1 Add some more unit test documentation.
Also split some larger tests into multiple smaller tests.
2022-11-13 16:35:06 -06:00
Wedge009
765cf1e79f Add screenshots directory to game version dialogue.
Resolves #7096.
2022-11-12 20:34:33 -06:00
doofus-01
3f4eebc177
1.17 Horses updates (#7072)
* update great horse

* update white horse

* update dark horse
2022-11-06 12:45:20 -08:00