Commit graph

84495 commits

Author SHA1 Message Date
white-haired-uncle
d2e7fbbeb8
GUI2 LuaAPI: add clear_items() (#9418) 2024-10-09 01:37:03 -04:00
Charles Dang
56cc3aee0f
Config: remove implicit conversion to int and bool (#9444)
Resolves #9009, closes #9384. Besides the issues that came from having both int and bool conversions (even with bool marked explicit), it doesn't make sense to use int for all numeric assignments. I didn't test whether it would be an issue in practice, but it seems better to let callers be explicit about what type they want for numeric values than risking overflow or wrapping for very large values.
2024-10-09 01:36:10 -04:00
Tóth Kornél
f13d4fe2a4
Teleport path finding improvement (resolves #9434)
* Removed duplicate map_location hasher, removed unused teleport_id variable, dst_node reference is used at other possible locations, teleport destination heuristic distance now calculated before path finding loop only once, teleport source heuristic distance now stored in nodes, only calculated once and reused.

---------

Co-authored-by: SomeName42 <>
2024-10-08 17:17:02 -04:00
Gothyoba
36146c5c6c Properly capitalize Young Ogre description 2024-10-08 09:27:05 +11:00
ForestDragon
9f64e355f9
[Units][Jumpcat] Rebalance Stats (#9432)
Change Jumpcat from level 1 to level 2
Increase HP from 32 to 40.
Reduce MP from 9 to 7.
Reduce arcane resist from 20 to 10.
Increase cost from 15 to 26
Replace claws' parry with backstab, but reduce damage from 6-3 to 5-3
Remove accuracy from tail, but increase damage from 11-2 to 13-2
2024-10-07 14:27:45 -05:00
Gunter Labes
b1eb871df7
Schema: Add missing location filter attribute 2024-10-07 14:05:16 +02:00
doofus-01
422425f772
Update changelog.md 2024-10-06 18:00:41 -07:00
doofus-01
78c8ed24fb
1.19 Better mountains/elevation interactions (#9400)
* address bluffs-mountains transitions

* revise visual indicator of flood-filled elevation regions in editor

* small border versions of dry and basic mountain

* fix some frozen/elevated transitions

* address mini-map concerns in #8924
2024-10-06 17:51:54 -07:00
Tóth Kornél
9ca1c53b22
Fix in-game team names not reflecting game setup changes
Resolves #9407.
2024-10-06 21:57:34 +02:00
Yoruma
0e13a7e30f
Treat negative number of strikes as 0 instead of the unmodified amount
Fixes #9366.
2024-10-06 20:43:59 +02:00
doofus-01
a9637de7e7
various orc animations (#9289)
* touch-up to orcish warrior combat anims

* some pillager animations

* fix direwolf-rider shadow

* alternate orc warlord attack anim

* orc warlord victory anim
2024-10-05 18:25:06 -07:00
Wedge009
98aba787c4 Completed the update started in #9057. 2024-10-06 09:13:10 +11:00
Wedge009
558650bd14 Typography update for source code (in addition to .cfg data files previously reviewed). 2024-10-06 09:13:10 +11:00
Wedge009
5ec94b5904 Adding requested po hint.
[ci skip]
2024-10-06 09:13:10 +11:00
Wedge009
ca8a0aede8 Typography update. Closes #8000.
[ci skip]
2024-10-06 09:13:10 +11:00
Charles Dang
32e1bdb2e6 Help/Editor: shorten very long topic title 2024-10-05 15:19:52 -04:00
Charles Dang
ad736266c1 GUI2/Widget: add const overload of get_parent_grid 2024-10-05 15:19:20 -04:00
Charles Dang
2931816979 GUI2/Tree View Node: make use of emplace_back returning a reference 2024-10-05 15:18:48 -04:00
Charles Dang
9dc4a94533 Pango Text: avoid max short constant 2024-10-05 15:17:10 -04:00
Charles Dang
0fa0019127 Hide Load Turn button in MP (resolves #9308, closes #9428) 2024-10-05 15:12:30 -04:00
Nils Kneuper
d84669c8a8 updated Japanese translation 2024-10-05 15:07:31 +02:00
Nils Kneuper
58bc7ba4af updated Bengali translation 2024-10-05 15:06:48 +02:00
Subhraman Sarkar
ea3698665f rich label: fix wrong text splitting for pixel scale > 1 2024-10-05 15:57:06 +05:30
Charles Dang
736e45a197 Remove all occurrences of box=yes in editor help markup
Was non-functional anyway
2024-10-05 00:57:26 -04:00
Charles Dang
8079807146 Fixed broken table markup in Editor Palette topic 2024-10-05 00:55:23 -04:00
Charles Dang
2dd27fcf8e Help: fix unit type pages not showing up due to overscaling 2024-10-04 20:26:58 -04:00
Charles Dang
eccce783a9 GUI2/Help Browser: layout improvements 2024-10-04 20:26:23 -04:00
Charles Dang
57bd39d4a5
GUI2/Rich Label: minor cleanup (#9426) 2024-10-04 19:53:28 -04:00
OrekOrek
d9bb46ce37
Units are defined without [base_unit] tag (#9413)
Dark Horse, White Horse, Sand Scamperer, and Sand Scuttler are now defined without [base_unit] tag.
2024-10-04 17:30:19 -05:00
Gothyoba
1597fd0248 Typo fixes in EI _main.cfg 2024-10-04 08:57:54 -04:00
Gothyoba
fa3d421a85 Remove unused lua in THoT 2024-10-04 15:59:29 +10:00
Charles Dang
b1105e2c2f Config: add range-based access over child tags
This is meant as a lightweight replacement for all_children_range in cases where the iterator doesn't need to be stored (most cases). It has several advantages:

First, it avoids the custom iterator classes, making the code easier to read. It also means it should be composable with STL ranges in C++20. Further, you no longer get a mutable reference on a const config. Finally, it means intellisense can properly display the key/cfg types in a structured binding. When unpacking `config::any_child`, for some reason it shows up as a key/value copy instead of reference...
2024-10-03 23:40:41 -04:00
Charles Dang
61ac2e3f3f Config: fix value ctor not compiling with const config references 2024-10-03 23:40:41 -04:00
Charles Dang
187f10ea84 Config: added assignment to string&& 2024-10-03 23:40:41 -04:00
Dalas121
e7509c5dba
EI S14 "Drowned Plains" - rework scenario objective (#9411)
Change the EI S14 objective from "kill enemy leaders" to "gather gold". Reduce turn limit from 75 to 25.
2024-10-03 22:26:08 -05:00
Tóth Kornél
08c666156b
Action wml unit better error (#9402)
* Better error message for ActionWML [unit]

---------

Co-authored-by: SomeName42 <>
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2024-10-03 13:59:00 -05:00
Celtic Minstrel
4062f579e3
Fix #9360 2024-10-02 09:05:24 -04:00
Dalas121
2bec13a825
EI: update Dacyn arcane resistance to be consistent with the arcane rework (#9412)
* Twilight Mage: set arcane resist to 20%
* Fallen Mage: set arcane resist to -20%
2024-10-02 07:43:39 -05:00
Subhraman Sarkar
8267bc3d16 rich label: use columns instead of col_idx for last col width calculation 2024-10-02 10:41:19 +05:30
Gothyoba
1008296863 Change UtBS date from 300 to 1000 AF
This makes a lot more sense given how forgotten everything before the fall is by the time of UtBS. 300 AF is small enough for a few elves to remember the times before. 1000 AF is more sensible in my opinion.
2024-10-01 19:17:44 -04:00
Pentarctagon
ede10ca10c
slows tests (#9401) 2024-10-01 17:54:36 -05:00
Subhraman Sarkar
d2f6b171c0 help: fix misalignment in Unknown Unit page 2024-10-01 21:37:40 +05:30
Subhraman Sarkar
5e50ab2bf1 rich label: remove leftover debug_print 2024-10-01 12:54:47 +05:30
Subhraman Sarkar
a7420b80ea various rich label bugfixes 2024-10-01 12:39:34 +05:30
ForestDragon
d0688865ff
[Units][Skeletal Dragon] Adjust stats to be closer to 1.18 (#9403)
Skeletal Dragon saw very major buffs in #8541, which causes some concern about rebalancing and UMC. This reduces their stats closer to 1.18, though still moderately stronger.
2024-09-30 13:10:52 -05:00
Gothyoba
25718875f0 Fix a comment typo in THoT S6 2024-09-30 13:36:12 -04:00
Charles Dang
ea1d915c26 Display: remove scroll_to_tiles overload taking iterators
Was only used in two places, one of which was as the implementation of the version that took a vector. All the same arguments were accepted by both. Also use list initialization for the other overloads.
2024-09-30 02:39:31 -04:00
Charles Dang
bc971b45c9 Display: simplify get_middle_location 2024-09-30 02:36:06 -04:00
Charles Dang
17361198fe Display: use rect instead of SDL_Rect consistently 2024-09-30 02:34:48 -04:00
Charles Dang
07df161c96 Display: simplify tile_fully_on_screen
outside_area checks that the point is within the given rect reduced by hex_size(). Since that's the size of a location rect, the adjustment meant that a hex can't protrude outside the map area. This simplifies the logic using rect math instead of point math.
2024-09-30 02:32:15 -04:00