Commit graph

29470 commits

Author SHA1 Message Date
Toranks
4a5d1932c7 Fixed texdomain
Weapon specials usually are on wesnoth-help texdomain
2023-01-02 14:06:37 +11:00
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
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
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 3568b5ff66.
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
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
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