Charles Dang
78676a27ad
Use structured bindings for config attribute ranges in most places
2024-09-15 00:16:51 -04:00
Charles Dang
857799da37
Config: remove <ctime> and <iterator> includes
2024-09-15 00:16:51 -04:00
Charles Dang
6df2653c61
Config: use structured bindings
2024-09-15 00:16:51 -04:00
Charles Dang
a9e6af20d3
Config: avoid second lookup when adding child nodes
2024-09-15 00:16:51 -04:00
Charles Dang
7332e124eb
Config: remove string and const char* overloads for operator[]
...
Since these just construct a string_view from their arguments, we can just let the implicit conversion happen.
2024-09-15 00:16:51 -04:00
Charles Dang
c34a18da47
Config: fix a couple functions not taking string_view args
2024-09-15 00:16:51 -04:00
gfgtdf
ff9ccabbee
Fix #9190 error in Lua mapgen
2024-09-15 03:24:05 +02:00
Oleksii
094918c5ac
LoW: some fixes for S10, S22 ( #9128 )
...
* fixes for S10, S22
* fixes for #7137 #8359 #8360
* fixes for #7137 #8359 #8360
* fixes for #7137 #8359 #8360
2024-09-14 15:00:02 -05:00
ZombieKnight
4f7ae435dd
Make status orb work with custom max/min_range ( #9255 )
...
This code sets orb color to can-still-make-an-action if unit has no moves left,
and has a visible enemy within max and min range of a weapon. This also affects
if the unit is selectable with 'N' (units that can move or attack).
Currently, it doesn't affect the mainline much, as no unit has a weapon
max/min_range different from 1, most notice-able, it marks units with no attack
as incapable of action, after having no moves left.
The purpose of this is part of getting real-ranged attacks into the mainline.
2024-09-14 19:07:54 +02:00
Gunter Labes
ed354c1d41
Remove pointless closure
2024-09-14 18:22:32 +02:00
Nils Kneuper
ee7d026daf
updated Bengali translation
2024-09-14 12:02:16 +02:00
Nils Kneuper
64cc8af1d7
updated Czech translation
2024-09-14 00:47:59 +02:00
Nils Kneuper
934385ed08
updated Ukrainian translation
2024-09-14 00:46:58 +02:00
Nils Kneuper
6f09098adc
updated Italian translation
2024-09-14 00:45:53 +02:00
Nils Kneuper
bcc1c68359
updated Chinese (Simplified) translation
2024-09-14 00:44:55 +02:00
Gunter Labes
c53cb1d6fb
Add missing tags to game config schema
2024-09-13 21:59:04 +02:00
Gunter Labes
41729833c8
Include the unknown condition in the error message
2024-09-13 21:50:17 +02:00
Gunter Labes
0681b41323
Update wesnothd synopsis
2024-09-13 21:43:28 +02:00
Steve Cotton
7f8e3344cf
Add a second unit test for TEST_FORCE_CHANCE_TO_HIT
...
It should work even when the macro appears in the same event as the
attack; this tests that.
The new one uses the COMMON_KEEP macro, but I've left the existing
one unchanged, except for the renaming.
2024-09-13 19:15:56 +02:00
Subhraman Sarkar
14732806c9
Preferences: move the Apply button and disable it unless needed
...
this also makes it obvious that the Apply button is used only for UI theme selection, and is not a global Apply button
2024-09-11 15:07:49 -04:00
Wedge009
b316ee518b
Extend case-insensitive filtering beyond ASCII characters ( #9332 )
...
This updates filtering for:
* Game Load dialogue
* MP lobby
* In-game label and unit search
* Add-ons client (now used consistently)
2024-09-11 14:42:45 -04:00
Gunter Labes
ad85d62f7d
Remove useless comment
2024-09-11 11:58:55 +02:00
white-haired-uncle
730c5d3ffa
GUI2/LuaAPI: add len operator to container widgets ( #9335 )
2024-09-10 22:25:06 -04:00
Charles Dang
2d765118ed
Clean up use of chrono types in log code
2024-09-10 21:09:27 -04:00
pentarctagon
d32a363ae8
plague tests
2024-09-10 18:14:50 -05:00
newfrenchy83
aec9948c6d
Remove unit recursion of special_unit_matches()
...
Like unit recursion depth is to 3 and attack recursion 4, what count begin if and only if ability_(id/type) active called is more appropriate.
2024-09-10 18:14:39 -05:00
Toom
4ef1e78a38
Clarify unit type description label
...
Unit description is not yet implemented. Once it is, I expect menu item is changed back to unit description, while the opened dialog has link to navigate to unit type description.
2024-09-10 18:14:13 -05:00
newfrenchy83
33976efcfc
add 'core' folder in folder list of boost folder used in include
2024-09-10 16:15:37 +02:00
Subhraman Sarkar
47642719bf
Update the help page entry for the Item tool to reflect that removal is now possible
2024-09-10 06:14:34 +05:30
Gunter Labes
91e6daad23
Fix image file name
2024-09-09 18:18:17 +02:00
Gunter Labes
45558f52ee
Use correct wesnoth option
2024-09-09 16:22:01 +02:00
Charles Dang
e814a48f40
GUI2/File Dialog: clean up definition
2024-09-09 09:09:22 -04:00
Gunter Labes
7c0e406d48
Only run WML tests once and upload WML test data
2024-09-08 22:51:47 +02:00
Charles Dang
dfd9429e0d
Simplify prefs::get_system_username
2024-09-08 15:14:00 -04:00
Gunter Labes
4991005765
WC: Explain that you can also add data via resources
2024-09-08 19:54:42 +02:00
pentarctagon
40ef4dbbf4
Revert "Bump min Boost version to 1.82 ( #9317 )"
...
This reverts commit 7c60174ad10de5adc8b7e56b24810e830f50e62a.
2024-09-08 10:25:45 -05:00
pentarctagon
08d3f3be88
Revert "Add utils::span wrapper ( #9318 )"
...
This reverts commit 686eb30d41cf3975a3900fb11a80630fce6369e3.
2024-09-08 10:25:36 -05:00
newfrenchy83
5c9065eb7e
change calculation rules so that add and sub are always used independently
...
when two special weapons use multiply and divide with the same id, both operations are used, isn't that so why should it be different with 'add' and 'sub' where it's the larger value that is used (if asub=value_sub and add=value_add are used and value_sub>value_add then value_sub is used). This logic is counter-intuitive. that multiplication/division is applied to (base_value +- add/sub) is understandable but not this discrimination. For me add and sub should still be usable; even if it means changing the rules, but I think we will gain clarity in the end.
2024-09-08 14:16:28 +02:00
Charles Dang
686eb30d41
Add utils::span wrapper ( #9318 )
2024-09-08 02:38:24 -04:00
Charles Dang
7c60174ad1
Bump min Boost version to 1.82 ( #9317 )
2024-09-08 00:58:32 -04:00
pentarctagon
9e756f9fc5
petrifies tests
2024-09-07 19:53:08 -05:00
Gunter Labes
81229241bb
Fall back to master data dir (for dev versions for example)
2024-09-07 21:10:27 +02:00
Steve Cotton
547de5fd93
Test calculations of abilities with add and sub
...
Fix a typo in the add_sub_separated test, because it was testing
exactly the same code as add_sub_cumulative.
Add two new tests and clarify documentation, because in these tests
the order of the abilities determines whether the add or sub value is
used, it isn't that sub always overrides add.
2024-09-07 21:02:39 +02:00
newfrenchy83
c5351fb998
Fix recursion ability count version ( #9296 )
...
I use the same method what in master for weapon special recursion.
2024-09-07 16:45:26 +02:00
Nils Kneuper
20df59154d
updated Arabic translation
2024-09-07 14:46:28 +02:00
Nils Kneuper
f61883c454
updated Chinese (Simplified) translation
2024-09-07 14:45:34 +02:00
newfrenchy83
02c599e59a
fix submerge item issue
...
fix https://github.com/wesnoth/wesnoth/issues/9305 issue.
et_suv was not include in if loop condition and submerge calculation made a multiply by zero.
2024-09-07 01:04:43 -04:00
Charles Dang
704ab36e24
Unit: clean up hp/xp color getters
2024-09-06 23:08:40 -04:00
pentarctagon
2c840acc68
try this baseline
2024-09-06 12:15:21 -05:00
pentarctagon
c8fbbadc27
fixes VS build issues apparently
2024-09-06 09:13:05 -05:00