Commit graph

84096 commits

Author SHA1 Message Date
gfgtdf
ebaafe6d6b Fix commom OOS error #8960
Previously `synced_context::undo_blocked()` sometimes returned the worng result, leading to OOS because `synced_context::undo_blocked()` was used to determine whether we can send action to the other clients.

With this patch `synced_context::undo_blocked()` not doesn't always return true  when its called during "local choices".

I am curently not even sure whether that line is needed at all since using the rng should always set is_simultaneous_ to true.
2024-07-21 17:49:10 -05:00
Toom
dbbee82d9c validate [screen_fade] required parameters 2024-07-21 17:48:45 -05:00
Pentarctagon
124cf1ccf0
chance_to_hit tests (#9093) 2024-07-21 17:30:37 -05:00
Pentarctagon
f1a236ae24
Move command line processing before logger initialization (#9116)
Log files goes in the userdata folder so they therefore need the userdata to be initialized before that.

Fixes #9111
2024-07-21 17:28:54 -05:00
Steve Cotton
302d78edc5 Reserve the name "_bug" for tests of behavior that should change
Even tests that don't have "_bug" in the name shouldn't prevent
intentional changes to behavior, I've added a paragraph about that.

Rewrite the non-reservation of "break" and "error" for clarity.
2024-07-20 11:19:51 +02:00
Celtic Minstrel
c96196cd4d [Lua] Use game_events.add for feeding instead of add_repeating 2024-07-20 11:09:33 +02:00
Dalas121
c6e8dc5bcd
EI: minor assorted unit stat and item tweaks (#9103)
* Eastern Invasion
     * fixed Gweddry having the wrong HP values
     * fixed the king being neutral instead of lawful
     * fixed "Dark Shape" being neutral instead of chaotic
     * the king can no longer wield the plague staff
     * the king and generals can no longer recall undead veterans
2024-07-19 20:30:07 -05:00
Dalas121
71dfdab2eb
EI: changelog entry for backported changes
(in the future I'll do these as part of the main PRs)
2024-07-19 20:29:28 -05:00
Dalas121
cc07e62221
EI S12: fix Dra-Nak having inconsistent traits and portrait (#9113)
In EI S11, the player encounters an orcish warlord named Dra-Nak. If not killed in S11, he continues pursuing the player in S12, but the current S12 gives him different traits and a different portrait. This PR fixes the issue.
2024-07-19 19:25:37 -05:00
Dalas121
5881045c50
EI S17b: fix buggy dynamic recruit list macro (#9105)
EI's S17b has a gold refund mechanic, allowing enemies to build up large gold reserves in certain situations.

When gold gets high, enemies are supposed to start recruiting higher-level units so they can spend it faster. The former implementation had some inconsistent issues; this should restore the intended behavior.
2024-07-19 19:17:41 -05:00
Dalas121
76f3207c3b
EI S04c: only award achievement if all prisoners escape (#9108)
EI's S04c has an achievement for rescuing all 6 prisoners. This achievement currently triggers even if prisoners die before escaping the scenario.
2024-07-19 19:17:08 -05:00
Dalas121
f07b6ecbad
EI S99: prevent prisoner income if prisons are captured (#9112)
In EI's S99, you gain gold from defeating and capturing hostile drakes.  The drakes are physically moved to prison cells in the middle of the map.

Previously, the player could continue capturing drakes even if the prison cells were captured by enemies. This made it a strong strategy to abandon the center and turtle up in a corner of the map. Additionally, the prison cells stayed locked with prisoners inside.

This PR fixes this issue. This also adds 2 new strings; I'm planning to backport to 1.18.2, as this is arguably a bugfix.
2024-07-19 19:16:57 -05:00
Dalas121
fce2127c92
EI S11, S99: prevent backdoor entrance into prison cells (#9114)
EI's S11 and S99 have prison cells, one of which has an unintended backdoor entrance via an unwalkable deep water river. Flying units are involved in these scenarios, and can possibly fly into the cells through this unintended backdoor.

This PR changes the map hexes from unwalkable to impassable.
2024-07-19 19:16:13 -05:00
Charles Dang
8f26d5ede7 MP/Faction Select: fix help page handling (fixes #9102) 2024-07-18 10:02:42 -04:00
Charles Dang
e45b46107e
FS: use optional<string> to represent non-existent paths (#9107) 2024-07-18 09:58:55 -04:00
pentarctagon
4f40c9deb5 Move assert into filesystem::get_user_data_path()
As discussed previously in https://github.com/wesnoth/wesnoth/pull/9016#discussion_r1650036348
2024-07-17 17:50:03 -05:00
Oleksii
2704adf70d
LoW bigmap localization fix and folder regroup (#9101) 2024-07-17 18:48:40 -04:00
Tahsin Jahin Khalid
02f9c2186c
WC: delete no longer needed todo.txt file (#9099)
* WC: delete no longer needed todo.txt file
2024-07-17 19:29:28 +06:00
Oleksii
0f188acc9f Ukrainian maps for did,ei,low,l,sof,thot,tsg,tb 2024-07-17 08:38:22 +10:00
Oleksii
b254452c58 Update copyrights.csv 2024-07-17 08:38:22 +10:00
Oleksii
61c40732b6 uk maps for trow, nr and dw 2024-07-17 08:38:22 +10:00
Oleksii
313e83f58e l10n: Add Ukrainian Logo 2024-07-17 08:38:22 +10:00
gfgtdf
abb79ab055
wc: fix #9012 error when deserter list is empty (#9094)
we no longer show the deserter option if no deserters are avilable
2024-07-16 22:31:57 +02:00
Subhraman Sarkar
2660c0e086 new ui theme: modern (titlescreen only atm)
Design idea and concept art: Dalas
Implementation: babaissarkar

Co-authored-by: Dalas121 <33790750+Dalas121@users.noreply.github.com>
2024-07-16 13:07:57 +05:30
Subhraman Sarkar
99d66cc893 use drop cap for the tip of the day message
additionally, now only one of game_title and game_title_background is needed. An error will happen only if both of them are absent.
2024-07-16 13:07:57 +05:30
Subhraman Sarkar
a973fd4ab3 allow multiple backgrounds
Game_title_background can be a comma separted list of backgrounds.
if multiple backgrounds are present, one of them will be chosen at random when the UI reloaded.
2024-07-16 13:07:57 +05:30
Subhraman Sarkar
43f0e05d57 preferences dialog: expose option for switching gui2 themes 2024-07-16 13:07:57 +05:30
Subhraman Sarkar
636378f0f8
update bengali locale info (#9100)
without this Bengali will be sorted at the end of the language selection list
2024-07-15 22:58:15 +06:00
Wedge009
11506811ff Update copyrights: Write CSV as UTF-8 2024-07-15 15:05:27 +02:00
Gunter Labes
fe09128ee5
WC: documentation update 2024-07-15 11:57:34 +02:00
Gunter Labes
1f58cf1197
Simplify user data dir determination
Behavior should be generally as in 1.18 except for interpreting relative paths
normally instead of under $HOME. The latter was warned about for quite a few
versions now.

Also make sure normalize_path does not cause the path to become empty.
2024-07-14 14:46:39 +02:00
Charles Dang
95e81a48a6 Attack Prediction: clean up some unique_ptr usage
According to cppreference, this use of make_unique for array types value-initializes
the array, which here is equivalent to zero-initialization.
2024-07-13 16:32:09 -04:00
Charles Dang
43a574ac62 Replace a few more cases of INT_MAX 2024-07-13 16:29:11 -04:00
Wedge009
e49addc585 Update copyrights: Always use slashes for the file path
Avoid discarding the entire copyrights.csv when running the update on Windows, and force slashes in file path strings if adding new files.

* Also rename hash object to avoid collision with built-in hash function.
* Clarified file object is representing a file path string as opposed to an actual open file object.
2024-07-13 16:29:38 +02:00
Nils Kneuper
c0541dce06 updated Finnish translation 2024-07-13 11:31:53 +02:00
Nils Kneuper
448ab75188 updated Chinese (Simplified) translation 2024-07-13 11:30:37 +02:00
Nils Kneuper
d5958da34c updated Bengali translation 2024-07-13 11:29:40 +02:00
doofus-01
5fff9c5c3f
EI: Cleanup of urbanjungle terrain type
Cleans up the help browser and fixes #8497 (and makes the icon no longer pink).
2024-07-12 14:58:15 +02:00
Charles Dang
156630d314 Use std::numeric_limits instead of C macros 2024-07-12 02:49:27 -04:00
Steve Cotton
bcd97b209a updated German translation
Thanks to Wuzzy for all of these.
2024-07-11 22:27:07 +02:00
Gunter Labes
e7acc0e3b9 Perform multiplication in result type for types larger than int
Makes the code do what is commonly expected and avoids needless overflow since
otherwise the multiplication is done as int.
2024-07-11 20:57:57 +02:00
Subhraman Sarkar
e7c09868b7 fix whitespace 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
7ba098a182 mention gui test dialog in manpage 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
7b5b92a0e5 remove non-ASCII quotation 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
10c498c993 update manpage 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
9e87bdd67d fix whitespace 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
815a4379e6 update documentation and move condition to top
thanks to stevecotton for the documentation message for no-log-sanitize
2024-07-11 20:46:27 +02:00
Subhraman Sarkar
8166ab25ab add a command line option for disabling log sanitization (#8505) 2024-07-11 20:46:27 +02:00
Gunter Labes
5461f226e7
Allow manual trigger 2024-07-11 18:04:37 +02:00
Gothyoba
102e1b4629
[Units] update Wyvern Rider description (#9020) 2024-07-10 12:55:44 +06:00