83223 Commits

Author SHA1 Message Date
pentarctagon
39987cd1ca Add a Community button to the title screen.
This opens a dialog with links to the forums, discord, etc, plus a donate button that links to Wesnoth's SPI page.
2024-04-15 16:50:42 -05:00
Gunter Labes
0222fdad50
Various improvements for the server scripts
Respect server options given as script arguments.
Fix killing background process in trap.
Use printf instead of echo.
Keep upper case variable names reserved for env variables.
Logfilter scripts converted to sed -E and removed GNUisms.
2024-04-14 22:03:03 +02:00
Dalas121
3dadec9cac
EI S12: prevent ogres from saying the final goodbye in "Evacuation" (#8761) 2024-04-14 14:07:20 -05:00
Tahsin Jahin Khalid
d179c3a424 NR: remove unused unit: Cave Serpent
Part of #8734
Note: I searched all NR scenario files with "search and replace" in VS Code and apparently this unit was not even being used in NR.
2024-04-14 18:54:31 +02:00
Wedge009
c62fd51f48
Check log file actually exists before enabling Log File button (#8727)
* Check log file actually exists before enabling Log File button. Resolves #8691.

* Return empty string if output file path is empty.
2024-04-14 16:56:01 +10:00
Dalas121
eb8fe63928
Fix "mak-dak'an" typo in EI (#8752) 2024-04-13 17:01:40 -05:00
Dalas121
dc538bf100
Liberty: Custom Unit for Lord Maddock (#8551)
* Liberty: add custom unit images for lord maddock

* Liberty - upload maddock custom unit .cfg

* Liberty: scenario 4 use custom maddock unit

* Liberty: fix incorrect texdomain in Maddock.cfg

* Liberty: remove whitespace from Maddock.cfg

* Update maddock's unit description

Co-authored-by: nemaara <nemaara@users.noreply.github.com>

* Update Maddock.cfg unit description

* update copyrights

---------

Co-authored-by: nemaara <nemaara@users.noreply.github.com>
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2024-04-13 05:13:23 -05:00
Nils Kneuper
0dd55ce4f6 updated Czech translation 2024-04-13 11:34:54 +02:00
Nils Kneuper
4e7dfe88ed updated British English translation 2024-04-13 11:33:51 +02:00
Nils Kneuper
631dae9ee2 updated Slovak translation 2024-04-13 11:32:23 +02:00
Nils Kneuper
021e3ac315 updated Ukrainian translation 2024-04-13 11:30:59 +02:00
newfrenchy83
94e388186c rename static function to select_damage_type 2024-04-13 01:50:22 -04:00
newfrenchy83
ec7adf16d3 return optional<std::string> instead of vector<std::string> for damage_type_list
this code should be more readable without affecting the operation of damage_type
2024-04-13 01:50:22 -04:00
Charles Dang
c07d5438c7 Pardon the erroneous comment 2024-04-13 01:27:24 -04:00
Charles Dang
cd6f3fade7 Fix idle anim rate not being saved properly (fixes #8613) 2024-04-13 01:18:41 -04:00
Subhraman Sarkar
6d68af0834
sylph and enchantress attack description changes (cosmetic) (#8737)
enchantress' attack icon is also changed to make it consistent
2024-04-12 17:10:32 +02:00
Gunter Labes
b81afa77aa Make log_file_suffix dependency explicit 2024-04-12 11:44:19 +02:00
Celtic Minstrel
7aa5450a41 [Lua] Replace gui.show_inspector's undocumented config parameter with a string parameter that does the same thing.
It's still supported to pass a config, just in case anything relied on that.

This also updates the LuaDoc documentation at the same time.
2024-04-11 23:49:15 -04:00
Celtic Minstrel
69789b7757 [Lua] Accept {r=..., g=..., b=...} format for colours in add_overlay_text 2024-04-11 23:48:56 -04:00
Celtic Minstrel
d734bfb9e2 [Lua] Make wesnoth.read_location return its result in standard named tuple format 2024-04-11 23:48:21 -04:00
Pentarctagon
9548f4c7b5
Hardware unit submerge effect using SDL_RenderGeometry. (#8687)
Original code from mesilliac in #6826. Made a separate PR for this since the relevant code moved to an entirely separate file and trying to "properly" fix the merge conflicts resulting from that isn't worth the time.
2024-04-11 12:58:56 -05:00
Pentarctagon
901e91c8ec
Move Dunefolk to the Default era. (#8688) 2024-04-11 10:43:41 -05:00
Gunter Labes
020c848c84
Allow git describe to fail 2024-04-11 14:10:55 +02:00
newfrenchy83
82499d0785
add min_value to [resistance] (#8722)
max_value is used to limit the increase in resistance with the "resistance" capability, but there was no equivalent for its reduction.

To be able to add min_value without redoing the "resistance" checking for the umpteenth time, I prefer to modify effect:: so that the checking of these two attributes is done at the same time as the other numerical attributes and keep the door open to a possible generalization of the proceed
2024-04-11 04:48:41 +02:00
Wedge009
f5c8db7b2f Unit editor: Remove translation mark from image paths. 2024-04-10 22:04:21 -04:00
Steve Cotton
f7fea77603 Move knowledge of attack_type out of movetype
The movetype data includes vulnerability to damage types, for example
`resistance_against("arcane")`. There was also a convenience wrapper
that took an attack_type, and returned the vulnerability to that
attack_type's damage type.

The logic of the wrapper is very basic, and does not use unit.cpp's
logic to check whether abilities that change the type are active.
Although it gained knowledge of alternative damage types in 3910817cf7,
it won't always return the same value as the unit.cpp function does.

The wrapper is now only used in FormulaAI, so let's move the code there,
which in effect marks it deprecated.
2024-04-11 00:07:23 +02:00
pentarctagon
3f016ebe35 pot-update and regenerate doc files 2024-04-10 12:07:57 -05:00
grz0
4b027073c0
Remove gzip/bzip2 (de)compression commandline options (#8718)
* Remove handling of --gzip --gunzip --bzip2 --bunzip2 command line options

* Remove --gzip --gunzip --bzip2 --bunzip2 options from manpages

* Remove --gzip --gunzip tests for commandline_options class
2024-04-10 15:45:01 +02:00
Dalas121
b98181a3da
EI: remove duplicate AMLAs (#8723)
Under some circumstances, units in EI could have their custom AMLAs listed multiple times in the advancement dialog.
2024-04-09 18:46:55 -05:00
Dalas121
80e84f1eeb
EI: reduce Barrow/Pyre Wight vulnerability to arcane (#8715)
* Update Undead_Horse_Barrow_Wight.cfg arcane resist
* Update Undead_Horse_Pyre_Wight.cfg arcane resist
2024-04-09 17:07:17 -05:00
Dalas121
f657a36549
EI: preserve XP when Dacyn receives scripted advancements (#8716)
* EI: retain experience when Dacyn advances to twilight mage
* EI: retain experience when Dacyn advances to fallen mage
2024-04-09 17:06:39 -05:00
Gunter Labes
cf52b6bdd0 Fix mismatch between what gettext.w.o and wesnoth consider core textdomains
wesnoth-anl is pretty much an extraction of wesnoth-multiplayer which is core.
2024-04-09 21:10:27 +02:00
Steve Cotton
da0ee60864 Fix race condition causing moveto messages to immediately close
If a mouse click causes a delay and then a message to appear, for example
when moving a unit triggers an `[event]name=moveto`, then the message
would sometimes flash on screen and then disappear with barely enough time
to see which character's portrait was used, let alone to read it.

Although there's already logic to not be triggered by the same mouseclick that
caused the unit to move, it had a race condition if the MOUSE_UP happened
around the time the the dialog's pre_show() function was running.

(cherry picked from commit 26ead85914c9e7af9e378d583657fef7f68f6821)
2024-04-09 19:29:52 +02:00
pentarctagon
131fec7866 doxygen fix 2024-04-08 22:48:31 -05:00
gfgtdf
0d9dfb64d2 Remove src/playturn.cpp 2024-04-09 04:18:46 +02:00
gfgtdf
8225916bfc simplify play_controller ctor
- `start_faded` was always true (the default value value was never used)
- 'skip_replay' was only set in playmp_controller which had already other
  code to set it (also it is not used in the ctor)
2024-04-09 01:25:01 +02:00
gfgtdf
71739b372e Remove unneeded display update after ai turn
From the ui point of view, there should be no difference between
network turns and ai turns, and the other play_.._turn functions
also work without such calls. (Furthermore this codes is really
old, so whatever the reason for its existance was probably doesn't
apply anymore)
2024-04-09 00:41:41 +02:00
gfgtdf
1fbeb9226d refactor playmp_controller::process_network_data
In particular we remove an unneeded do_replay(); call
2024-04-09 00:41:41 +02:00
gfgtdf
730f9bc661 remove unneeded recalculate_labels() on [change_controller]
This is already done when gui_->set_team() is called by update_viewing_player()
2024-04-09 00:41:41 +02:00
gfgtdf
1453142579 small hotkey::HOTKEY_ENDTURN refactor 2024-04-09 00:41:41 +02:00
gfgtdf
e3bf4dcb3f use play_controller member over resources:: 2024-04-09 00:41:41 +02:00
gfgtdf
638e37ddf8 remove unused replay_to_process_data_result() 2024-04-09 00:41:41 +02:00
gfgtdf
41554735ed Fix comments 2024-04-09 00:41:41 +02:00
gfgtdf
97c811432d simplify undoing moves message 2024-04-09 00:41:41 +02:00
gfgtdf
2638ce8afc Move some functions
Now its a bit easier to understand which functions are in play_controller adn which in playsingle_controller as all turn related functiosn are now in playsingle_controller
2024-04-09 00:41:41 +02:00
gfgtdf
c9fcce6be0 Don't reset turn statistics when reloading game 2024-04-09 00:41:41 +02:00
gfgtdf
0b08a426b7 Dont autosave on skipped turns
Previously when umc used [end_turn] in turn starte events
the game would still generate an autosave for that turn
2024-04-09 00:41:41 +02:00
gfgtdf
3959540bbc Remove unused function 2024-04-09 00:41:41 +02:00
gfgtdf
b6f9746891 add comments 2024-04-09 00:41:41 +02:00
gfgtdf
8ff6128f0f remove replay_network_sender
It didnt really make the code easier
2024-04-09 00:41:41 +02:00