Commit graph

84495 commits

Author SHA1 Message Date
Charles Dang
0fbf068824 Display: don't register flag drawing op for non-villages 2024-08-29 23:47:44 -04:00
Charles Dang
b9e9d9029c Display: clean up flag init
`side_colors` in `init_flags` was unused. It used to get passed to `image::set_team_colors`, but that was removed. Also, both calls to `init_flags_for_side_internal` were identical, so it makes more sense just to remove the private function. And it means less messy index handling of teams().
2024-08-29 23:11:15 -04:00
Charles Dang
8efac78de8 Floating Label: hide other contexts' labels when creating a new one (resolves #8845)
Very hacky, but it fixes the issue in question while we look at refactoring this mess...
2024-08-29 19:26:29 -04:00
Charles Dang
2e6fb0e356 Floating Label: remove surface arg from ctor 2024-08-29 19:25:26 -04:00
Charles Dang
4472867992 Fix HUD buttons drawing too early (fixes #8648)
Fixup for f79b38a1af.
2024-08-29 18:24:11 -04:00
Charles Dang
26b467e390 Fix HW submerge regression for items (fixes #9014) 2024-08-29 17:59:57 -04:00
Gunter Labes
0378ed6c65
Use more meaningful prompt text
This also allows to distinguish the formula prompt from the command prompt.
2024-08-29 21:04:37 +02:00
Charles Dang
314af165d4 Display: split the overlay rendering into its own function and tidy
Addresses the last implicit-this lambda capture issue with C++20 and makes the function easier to read.
2024-08-29 14:41:17 -04:00
Charles Dang
99d43d8790 Fix C++20 deprecated lambda capture usage 2024-08-29 14:41:17 -04:00
Tahsin Jahin Khalid
29123810fb
Sotbe/S5: some refinements (#9270)
- give side 1 starting villages near the orc base
- move Kapou'e to his keep at start

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2024-08-28 22:55:10 +06:00
Tahsin Jahin Khalid
d10ae768b5
SotBE S6: replace bad advice at turn 2 (#9269) 2024-08-28 22:54:24 +06:00
Tahsin Jahin Khalid
3f4ceb7d1c
[SOTBE] S3: make allied AI smarter (#9239)
* SOTBE-S3: make allied AI smarter

- they wont attack from poor defense anymore
- will only attack from hills where they have better defense

* SOTBE-S3: fix bad code in side AI

---------

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2024-08-28 22:53:34 +06:00
Gunter Labes
67ec133cca
Only grant necessary permissions 2024-08-27 23:27:37 +02:00
Gunter Labes
52518d741b
Fix copyright check and run on pushes to master as well 2024-08-27 21:47:33 +02:00
white-haired-uncle
60bbdc25c5
lua api: add optional data type support (#9263) 2024-08-27 20:36:53 +02:00
Gothyoba
c9819eb85d
Turn Dwarvish Miners into a Level 0 unit (#9158) 2024-08-27 23:23:43 +06:00
Charles Dang
3238026ad8 Remove HAVE_CXX20 macro
We use per-feature standard macros now
2024-08-27 02:11:41 -04:00
newfrenchy83
67a491bb9b add test for apply_to=both and apply_to=attacker/defender when both type of self and opponent weapon are filtered.
if filtering type of damage in [damage_type] for both self and opponent when apply_to=both, it will create a recursion issue.

Idem for apply_to=attacker/defender when applied to opponent of owner of special.
2024-08-26 16:42:30 -05:00
Charles Dang
9a39eac26a Update to Lua 5.4.7 2024-08-26 16:18:41 -04:00
Charles Dang
837e50a3e2 Spritesheet Generator: use ranges (conditionally) 2024-08-26 00:05:11 -04:00
doofus-01
033012219e
Add Exif tags to images (#9254)
Artist & copyright Exif tags track the copyright info in images, replacing what used to be tracked with "copyrights.csv".
2024-08-25 20:18:16 -07:00
pentarctagon
815739f1c2 drains tests 2024-08-25 20:46:15 -05:00
doofus-01
c1fd40c7a0
Update image_metadata.yml
undo 48ee897b00
2024-08-25 18:13:38 -07:00
doofus-01
bd4c83f955
Corrections to image metadata check CI (#9256)
* don't just compare webp

* fix license check
2024-08-25 17:41:08 -07:00
doofus-01
f684c20dac
remove CI check of copyrights.csv for images (#9246)
* remove CI check of images against copyrights.csv

* remove image file entries from copyrights.csv
2024-08-25 06:36:27 -07:00
Subhraman Sarkar
5251ca1593 miscellaneous documentation updates
1. config.cpp: replace angle quotes with typographic single quotes
2. config.hpp: typo fix
3. widget_definition.cpp, window_builder.cpp: show id for window/widget
4. wml_exception: implement missing tag message, use typographic single quotes in missing key/tag messages
2024-08-25 01:56:22 -04:00
Subhraman Sarkar
60640dc8bd Add lua function gui.switch_theme() to allow add-ons to switch themes in the middle of a scenario 2024-08-25 01:56:22 -04:00
Subhraman Sarkar
59911072aa support loading gui2 themes from add-ons
Requires a `gui-theme.cfg` file in Add-on root with a `[gui]` tag.
(Add-ons without all buttons in title_screen may get flagged as defunct.)
2024-08-25 01:56:22 -04:00
gfgtdf
37a0828428 fix map_locker in lua kernel
it previously didn't work as expected because that the variable wasn't given a name, so it locks the map and then immediately unlocks it again.
2024-08-24 23:48:11 -04:00
Dalas121
9ae2978fcd
Death Squire optional advancement macro and damage nerf (#9207)
* Death Squire optional advancement and damage nerf

The existing {ENABLE_DEATH_KNIGHT} macro allows Revenants to advance to Death Knights. The newly core-ed Death Squire also advances to Death Knight, but has no {ENABLE_DEATH_SQUIRE} macro.

I suggest adding a new {ENABLE_DEATH_SQUIRE} macro, while keeping the old {ENABLE_DEATH_KNIGHT} for backwards compatibility.

I also propose reducing the Death Squire's attack from 8x4 to 9x3, to make the Revenant a more competitive advancement.

Who's the current maintainer of SotA? Should {ENABLE_DEATH_SQUIRE} be used there, or should we continue using {ENABLE_DEATH_KNIGHT}?

Hejnewar, if you approve, what cost should the Death Squire be after this change?

* Reduce Death Squire damage from 8x4 to 9x3

* Update Skele_Death_Squire.cfg
2024-08-24 19:04:17 -05:00
Sergei Trofimovich
1fb93b68d1 filesystem.hpp: include missing <cstdint>
Without the change build fails on upcoming `gcc-15` as:

    In file included from src/desktop/paths.cpp:20:
    src/filesystem.hpp:232:13: error: 'uint8_t' was not declared in this scope
      232 | std::vector<uint8_t> read_file_binary(const std::string& fname);
          |             ^~~~~~~
2024-08-24 17:34:08 -04:00
doofus-01
78a4c5c494
Image metadata CI check (#9222)
add image exif metadata check workflow to CI (checks PR images only)
2024-08-24 04:07:31 -07:00
Nils Kneuper
01806d090f updated Japanese translation 2024-08-24 11:47:06 +02:00
sprunk
44f54bb57a Fix #9241, Liberty S1 dialogue item tweak
Extends damage and not the number of hits, so use "heavier rocks" instead of "more rocks".
2024-08-24 18:55:29 +10:00
Gunter Labes
6293a503e0
Merge pull request #9133 2024-08-24 06:41:03 +02:00
Nils Kneuper
d4b2d151ce updated copyrights for Turkish image update 2024-08-23 15:00:00 +02:00
Nils Kneuper
e1c14ac2a7 applied "update_copyrights" script 2024-08-23 14:50:50 +02:00
Nils Kneuper
aef0d3d87d updated Turkish translation 2024-08-23 14:48:01 +02:00
Nils Kneuper
38aef96b64 updated Chinese (Simplified) translation 2024-08-23 14:30:06 +02:00
Nils Kneuper
0fa48e2088 updated British English translation 2024-08-23 14:29:06 +02:00
Nils Kneuper
41896cabf9 updated Bengali translation 2024-08-23 14:27:53 +02:00
Iris Morelle
1ae764bd35
Merge pull request #9173 2024-08-22 17:00:32 -04:00
Gunter Labes
0c278d38aa Make command line option errors consistently return 2 as documented
Also print the error before the dialog so you don't first have to dismiss it to see the message on stderr as well.
2024-08-22 18:33:12 +02:00
Celtic Minstrel
cff5630f88 Lua API: Explicitly set default deleter for string-constructed formulas
Fixes #9237
2024-08-22 01:46:59 -04:00
Gunter Labes
9b70484b4f
Fix an indent inconsistency and add missing final newlines 2024-08-21 21:48:04 +02:00
Charles Dang
e08fcd1061 Don't clone surface too early 2024-08-21 13:16:55 -04:00
Charles Dang
365fe71e2c Only need read access for in_mask_surface 2024-08-21 13:16:55 -04:00
Charles Dang
a6e931af11 Reduce cache lookups in is_empty_hex 2024-08-21 13:16:55 -04:00
Charles Dang
e22c376d01 Fix possible regression from 457ed4bb43
I don't know if modifying this value in cache would cause issues, but better safe than sorry.
2024-08-21 13:16:55 -04:00
Charles Dang
bafe62948c Don't use exception bounds checking for image caches 2024-08-21 13:16:55 -04:00