Commit graph

84096 commits

Author SHA1 Message Date
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 7c60174ad1.
2024-09-08 10:25:45 -05:00
pentarctagon
08d3f3be88 Revert "Add utils::span wrapper (#9318)"
This reverts commit 686eb30d41.
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
Subhraman Sarkar
adef779ed9 unit type editor: various ui improvements and bugfixes
1. race/alignment/attack damage type/attack range show corresponding icons
2. attack damage type/range now use comboboxes for custom dmg types/ranges
3. quit confirmation added to cancel button so that user doesn't accidentally lose their data
2024-09-06 09:02:05 +05:30
Subhraman Sarkar
a25d10bbed editor: show "Map Saved" and "Scenario Saved" messages as floating label
gui2 messages grab mouse focus (modal dialog), so the user needs to click on it first before doing anything else
2024-09-06 09:02:05 +05:30
Subhraman Sarkar
fe9aeb6548 editor controller: show unit menu when addon selected and simplify code
1. When addon is selected using Add-ons > Select active Add-on, the Unit menu will get activated so that the unit type editor can be used
2. Simplify initialize_addon_if_empty, returns success value as bool
2024-09-06 09:02:05 +05:30
Subhraman Sarkar
3269d703b2 file dialog: improve checking and adjust strings
1. selecting an item from the file list will cause validation to run
2. strings adjusted so they are correctly picked up by gettext
2024-09-06 09:02:05 +05:30
Subhraman Sarkar
346c7c38b3 file dialog: add user bookmarks to correct category (fixes #9298) 2024-09-06 09:02:05 +05:30
Subhraman Sarkar
7065ed9fde item tool: add right-click to remove functionality 2024-09-06 09:02:05 +05:30
newfrenchy83
979289b579 fix tag_name check deficiencies
The tag_name check is deficient for two reasons:
1.when apply_to=both is used, in the case of [damage_type] [filter_opponent][filter_weapon]type= will check the modified type for application to the owner and the original type for application to the opponent, hence a risk of infinite recursion, especially if [filter_self][filter_weapon]type= is used in the same weapon.

2. in the case of apply_to=attacker/defender, the check for [filter_attacker/defender] must take into account both the value of the variable is_attacker but also the application AFFECT_SELF/OTHER, otherwise in the case apply_to=defender with [filter_defender][filter_weapon]type=, and[filter_attacker][filter_weapon]type= otherwise we end up in the same configuration as for apply_to=both

Finally tag_name is renamed check_if_recursion to mean that this variable is used to ensure that a recursion cannot be set up even if 743b146efc prevents it from causing a crash but with an error log
2024-09-05 18:35:35 -05:00
Charles Dang
d6f922f990 Remove a redundant getter 2024-09-05 15:44:06 -04:00
Charles Dang
2d01fddd26 Clean up unit ellipse rendering code 2024-09-05 15:42:54 -04:00
Charles Dang
a46c3c0051 Image Check: exclude deleted files 2024-09-05 12:38:46 -04:00
Subhraman Sarkar
9c732d41f1
use the already hardcoded list in unit_alignments (#8731) 2024-09-05 16:50:56 +05:30
Ethan-Nowa
eff8301cac
NR05a: Vary dialogue to better suit the speaker (#8830)
I changed some of the lines in NR The Pursuit to fit better with the different characters. Tallin, Abhai, Krash, etc.
I did not do it for every dialogue.
Addresses issues #8319 and #8772

More PR review feedback addressed by Wedge.

---------

Co-authored-by: Wedge009 <wedge009@wedge009.net>
2024-09-04 10:35:35 +02:00
Charles Dang
354418188e Add rect::shifted_by
Companion of rect::shift for const objects
2024-09-04 01:30:08 -04:00
Charles Dang
dd1f60b753 More animation functions that shouldn't return const objects... 2024-09-04 01:29:30 -04:00
Toom
57f4ca20aa Apply suggestions from code review
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2024-09-03 13:37:34 -04:00
Toom
b559549501 Update callable_objects.cpp 2024-09-03 13:37:34 -04:00
Toom
06350c9ad8 Update units.lua 2024-09-03 13:37:34 -04:00
Toom
08b3ccb9b5 Update attack_type.cpp 2024-09-03 13:37:34 -04:00
Toom
6ff07f563b Update attack_type.hpp 2024-09-03 13:37:34 -04:00
Toom
2a4aa334ff add max_range and min_range to Lua weapon object, re #9169 2024-09-03 13:37:34 -04:00
Charles Dang
a5f7804277
Mass cleanup of index-based teams list access (#9290)
Mostly converting index-based loops to for loops. Includes a couple other non-team loops that were in the files I was editing.
2024-09-03 13:31:05 -04:00
Steve Cotton
de342bb29c Fix typos in test of recursion 2024-09-03 18:39:22 +02:00