1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-31 22:59:54 +02:00

19693 Commits

Author SHA1 Message Date
George King
fb587f0deb
Fix text align in info window 2025-04-14 00:17:25 +02:00
Ivan Savenko
975d9aedc9 Merge branch 'vcmi/beta' into 'vcmi/develop' 2025-04-13 18:53:54 +03:00
Ivan Savenko
3d4ae903d7
Merge pull request #5620 from IvanSavenko/adela_fix
Better support for Adela specialty (+new modding functionality for it)
2025-04-13 18:42:23 +03:00
Ivan Savenko
896a7ec88e Better support for Adela specialty (+new modding functionality for it)
Fixes Adela specialty that was apparently broken back in #1518 and
replaced with logic that was clearly not tested - it was neither
functional, nor it was following H3 behavior.

- `HAS_ANOTHER_BONUS_LIMITER` now accepts `null` in place of bonus type,
for cases when limiting is needed by bonus source or bonus subtype. This
allows Adela Bless specialty to always work, irregardless of which
bonuses are provided by Bless.
- Implemented `DIVIDE_STACK_LEVEL` updater that functions same as
`TIMES_STACK_LEVEL`, but it divides bonus value, instead of multiplying
it (to make Adela specialty weaker for high-tier units, as in H3)
- Implemented `TIMES_HERO_LEVEL_DIVIDE_STACK_LEVEL` updater that
combines two existing updaters, to implement `val * heroLevel /
unitLevel` formula needed for Adela specialty
- Removed deprecated `ARMY_MOVEMENT` updater. Its functionality has
already been removed in 1.6.X releases, and it was remaining only as a
placeholder
- Updated modding documentation to account for these changes & to remove
some TODO's

Fixed regression from #777 that could led to either duplicated bonuses
or to multiple application of updaters. It introduced double-recursion -
node parents were gathered recursively, and then bonuses were also
collected recursively within each parent. This created situation where
updater could be applied different number of times. For example, hero
bonus that is propagated to unit in combat could be selected directly,
or via hero->combat unit chain, or via hero->garrison unit->combat unit
chains, leading to different calls to updaters if updater handles
garrison unit node type
2025-04-13 16:24:51 +03:00
Ivan Savenko
439c9a7888
Merge pull request #5622 from IvanSavenko/hypno_fix
Fix hypnotize spell
2025-04-13 16:21:14 +03:00
Ivan Savenko
65fd4d55d9
Merge pull request #5605 from GeorgeK1ng/drag_drop
Enable drag & drop for Map Editor
2025-04-12 11:13:22 +03:00
Ivan Savenko
f3ca06c3d0
Merge pull request #5593 from kdmcser/limiter
make OwnerUpdater not hardcode OppositeSideLimiter
2025-04-12 10:53:31 +03:00
Ivan Savenko
56fde609a8
Merge pull request #5616 from IvanSavenko/spellicon_fix
Fix loading of spell immunity icons for corresponding bonus
2025-04-12 10:51:02 +03:00
Ivan Savenko
0d5e936bc0
Merge pull request #5617 from IvanSavenko/keybinding_fix
Use SDL scancodes instead of keycodes for keybindings
2025-04-12 10:50:37 +03:00
Ivan Savenko
9f07c13c1e
Merge pull request #5618 from IvanSavenko/battle_fix
Fixes for recently reported combat issues
2025-04-12 10:49:48 +03:00
Ivan Savenko
1f70f27b2d Fix hypnotize spell
- Fix testing for Hypnotized status
- Fix handling of three-headed & all-around attack (Cerberi / Hydras)
while hypnotized
2025-04-11 18:01:49 +03:00
kdmcser
75aa89ae6e not use mutex 2025-04-11 22:52:20 +08:00
Ivan Savenko
b518b79505
Merge pull request #5615 from IvanSavenko/locale_fix
Fixes to locale/unicode handling
2025-04-11 17:06:11 +03:00
Ivan Savenko
dcb7a9e9f3 Fixes to locale/unicode handling
- Fixes crash on opening spellbook (recent regression)
- Fix crash if `haystack` string is shorter than `needle`
- Levenstein distance computation is now case-insensitive
- Text similarity computation now assumes utf-8 strings, not ascii
- Fix corruption of utf-8 string on life drain
2025-04-11 16:27:26 +03:00
Ivan Savenko
b6c341f7c0 Likely fix for inability to shoot if there was adjacent cloned unit 2025-04-11 00:35:11 +03:00
Ivan Savenko
d150b3907d Fix crash on using life drain with area attacks, like magog w life drain 2025-04-11 00:34:39 +03:00
Ivan Savenko
2f149b59ca Fix unit spellcasting when defending in a hotseat pvp battle
Check interface of player that is currently acting in combat, not player
that is making turn on map
2025-04-11 00:33:21 +03:00
Ivan Savenko
f05dc412f0 Use SDL scancodes instead of keycodes for keybindings 2025-04-10 22:47:43 +03:00
Ivan Savenko
e51ba74214 Fix loading of spell immunity icons for corresponding bonus 2025-04-10 22:24:22 +03:00
Ivan Savenko
0b437e8b1d
Merge pull request #5611 from GeorgeK1ng/custom_directories
Allow changing default directories in Windows
2025-04-10 17:31:41 +03:00
Ivan Savenko
2c8f562182
Merge pull request #5603 from MichalZr6/locale_fix
Fix crash when setting up locale on Android
2025-04-09 17:25:28 +03:00
Ivan Savenko
6247ed80d2
Merge pull request #5592 from GeorgeK1ng/mod_types
Add "Campaigns" mod type
2025-04-09 17:24:32 +03:00
Ivan Savenko
fb97891cd3
Merge pull request #5610 from IvanSavenko/beta_crashfixes
Beta crashfixes
2025-04-09 17:23:32 +03:00
George King
715736ebc2
Update schema 2025-04-07 21:04:36 +02:00
George King
227ea5da08
Update docs 2025-04-07 21:03:09 +02:00
George King
551d7801a0
Remove Map pack 2025-04-07 21:01:03 +02:00
George King
5b5b2f158d
Change getDefaultUserDataPath to const 2025-04-07 18:51:12 +02:00
George King
f802c5f717
Simplified getPathFromConfigOrDefault 2025-04-07 17:50:46 +02:00
George King
fa1386748e
Moved dirs.json load to constructor 2025-04-07 17:32:45 +02:00
George King
a9b23ae028
Fix build 2025-04-07 16:51:25 +02:00
George King
d2e5fdce56
Various tweaks 2025-04-07 16:37:51 +02:00
George King
451f22a22f
Update lib/VCMIDirs.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-04-07 10:21:31 +02:00
George King
2df2d48b4a
Update lib/VCMIDirs.cpp
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2025-04-07 09:55:47 +02:00
George King
5c83e54a9e
Update lib/VCMIDirs.cpp
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2025-04-07 09:53:27 +02:00
George King
a08e923934
Allow changing default directories in Windows 2025-04-06 22:14:51 +02:00
George King
37ec51527c
Allow changing default directories in Windows 2025-04-06 22:13:04 +02:00
Ivan Savenko
49e215a7c3 Bump fuzzylite submodule to latest commit 2025-04-06 18:45:30 +03:00
Ivan Savenko
dcbf12ef26 Fix rare crash on merging two stacks in town garrison with stack
artifacts equipped
2025-04-06 18:44:44 +03:00
Ivan Savenko
cbfaefd805 Fix rare crash if player selects maximum movement speed and moves hero
across event that grants enough XP to level up
2025-04-06 18:43:55 +03:00
Ivan Savenko
87caec6be1 Check for presence of builtin ttf fonts & report on start to avoid
strange crashes on font loading
2025-04-06 18:41:20 +03:00
Ivan Savenko
4555b2d228 Increase system RAM for xbrz2 auto-activation to 4Gb due to crashes on
Android
2025-04-06 18:40:27 +03:00
Ivan Savenko
6c1cb3ac54 Workaround / debug info for crash on failure to render ttf text 2025-04-06 18:39:53 +03:00
Ivan Savenko
3dd15beede Fix rare crash if player changes starting hero in MP while another has
town right-click popup open
2025-04-06 18:39:29 +03:00
George King
b9ef9f64bb
Forgotten setAcceptDrops 2025-04-05 11:12:37 +02:00
George King
9c10a0c05b
Shortcuts visibility 2025-04-04 20:47:18 +02:00
George King
97b1a00285
Drag and drop 2025-04-04 20:41:29 +02:00
George King
6fba8a6a86
Drag and drop 2025-04-04 20:41:04 +02:00
Ivan Savenko
e1be9af5e6
Merge pull request #5602 from IvanSavenko/fuzzy_bump
Bump fuzzylite submodule to latest commit
2025-04-02 16:01:34 +03:00
Ivan Savenko
f2ffe32d5c
Merge pull request #5597 from BenFradet/fix-dwellings
Fix dwellings recruitment text
2025-04-02 13:57:12 +03:00
Ivan Savenko
549a729e20
Merge pull request #5591 from IvanSavenko/vector_replace
Support for replacement of individual entries in json lists
2025-04-02 13:55:19 +03:00