81539 Commits

Author SHA1 Message Date
newfrenchy83
337f88091d
Further simplification of overwrite_specials attribute code (#7144)
Using the first loop to define three boolean variables is more complicated than simply eliminating from the 'overwrite_specials' list the abilities not carrying the attribute then; if an ability with the attribute is present define a double for loop inside each other, where for each ability with overwrite_specials the type of ability removal from the returned list is defined at that time (one_side or both_sides).

I eventually want to be able to be even more selective about the abilities that can be removed or not and extend the use of the attribute beyond chance_to_hit. When (and if) these two PRs will be merged in master, I will have to add 3-4 lines of hardcoding to implement the filtering). Building a list instead of splicing the existing one is incompatible with this project.
2022-11-20 15:17:02 +01:00
Nils Kneuper
40a64b5cbf fixed error in arabic translation (I hope...) 2022-11-20 13:38:33 +01:00
Nils Kneuper
fb3e653fe1 updated British English translation 2022-11-20 11:19:05 +01:00
Nils Kneuper
a7b39bd899 updated Arabic translation 2022-11-20 11:15:31 +01:00
Pentarctagon
6c7dd0a25b 1.17.10+dev. 2022-11-19 23:38:26 -06:00
Pentarctagon
79b2385140 1.17.10. 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
4646f5c720
Update changelog.md 2022-11-19 16:50:33 -08:00
doofus-01
94cc48427f
1.17 dunefolk falconer portrait (#7061)
* adding dunefolk falconer portrait
2022-11-19 16:45:43 -08:00
Andrei BENCSIK
2534c6184e Refactor autodetect_game_data_dir into function
the code that does autodetection looked like it could be put inside a
function - add a function that explains what it does

avoid some string copying and move where possible

use scoped ifs (c++17) to limit scope of local variables
2022-11-19 12:34:14 +01: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 7e234f8833282424b3535b9c334c751748f7222b. Does not revert files
that only listen for non-undoable events such as `die` or `new turn`.

Reverts the deprecation part of #5663's 8cd133263058a5df85f64988e348d2cf54d13a48.
2022-11-19 05:23:30 +01:00
Andrei BENCSIK
aa3d399f9d use emplace_back()'s return to swap string 2022-11-19 05:22:31 +01:00
Andrei BENCSIK
03a70c5a2d Simple refactor in read_argv
use argc to reserve space in the args vector
remove explicit constructor used in `push_back` vs `emplace_back`
2022-11-19 05:22:31 +01:00
Nils Kneuper
22c304f336 updated French translation 2022-11-19 02:10:12 +01:00
Pentarctagon
2fa3f32eec Changelog update. 2022-11-18 09:57:54 -06: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
Nils Kneuper
540b3a1fe3 updated Czech translation 2022-11-12 19:43:05 +01:00
Nils Kneuper
4edc8ef73e updated French translation 2022-11-11 18:39:59 +01:00
Iris Morelle
b6f8d971e7 Use std::size_t instead of int for generic iteration
This was caught through a mishap with -Wshorten-64-to-32 on Xcode,
and seems like a disaster waiting to happen with a sufficiently
large input ("this will never happen" kinda stuff waiting to be
proven wrong).
2022-11-09 14:19:35 +01: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
Nils Kneuper
2a56e6957a Polish translation: removed some "\v" that should not occur 2022-11-06 11:16:41 +01:00
Nils Kneuper
fc291a1fef updated Polish translation 2022-11-06 11:15:10 +01:00
Nils Kneuper
2fc6ab051b updated French translation 2022-11-06 10:48:07 +01:00
newfrenchy83
69ebfc6da6 Fix "Chance to hit" not translated in tooltip 2022-11-06 15:07:03 +11:00
Pentarctagon
0ac49cf126 Update vcpkg baseline. 2022-11-05 20:49:36 -05:00
doofus-01
4c61f07812
add missing terrain type alias to elevation markers (#7092) 2022-11-05 15:28:32 -07:00
Kingofd
4b8d4f1fb5
Adding language filter option in addon menu (#7048)
Resolves #1063
2022-11-05 12:04:55 -05:00
loonycyborg
27cb68b769
Update msys2 base docker image 2022-11-05 19:32:52 +03:00
Nils Kneuper
2d18e97efe updated Portuguese (Brazil) translation 2022-11-05 10:58:48 +01:00
Steve Cotton
b18b0e0f55 Add unit tests for [break] and [return] during [fire_event]
Fixes #7084.
2022-11-05 06:21:30 +01:00
Charles Dang
0f47405a96 Removed image::set_zoom
Unused
2022-11-04 18:56:07 -04:00
Pentarctagon
9efc202d33 Have langcode_to_string() look at all languages.
Previously by default langcode_to_string() would only look at languages based on them meeting the minimum percent translated to be selectable by default from the main menu. This is incorrect since an add-on's translation has no relation to the state of the translation of mainline.
2022-11-03 16:18:42 -05:00
Wedge009
26adbf4416 wmllint: As requested, adding recognition of WebP image labels.
Extension of #7079.
2022-11-03 11:26:30 +11:00
Wedge009
c8a0f9b9ca DM S21: Show Delfador crossing at the Ford of Abez and take a route to Weldyn via Tath.
Resolves #7081

[ci skip]
2022-11-03 11:16:56 +11:00
Wedge009
2010ffdbba
wmllint: Ignore labels for translation if a PNG extension is found (#7079)
* wmllint: Ignore labels for translation if a PNG extension is found.

Resolves #6995.
2022-11-03 11:16:37 +11:00
Wedge009
80b33deb9b SoF S9: Separate Toomak's last breath message from the events following his death. 2022-11-03 11:15:55 +11:00
Pentarctagon
16b900c273 Add documentation to more WML unit tests. 2022-11-02 15:16:23 -05:00
Pentarctagon
5d174a3493 Update lobby tab text. Resolves #7056 2022-11-01 19:24:05 -05:00
Pentarctagon
d98d5bea2f Add some more tests for config's attribute handling. 2022-11-01 13:28:21 -05:00
Wedge009
29a2add33f zombie-rat.png -> zombie-rat.webp 2022-11-01 22:57:48 +11:00
Wedge009
dc2ccab119 Correct non-standard spacing.
[ci skip]
2022-11-01 22:55:07 +11:00