MichalZr6
dad6437661
Refactor BattleHex, remake the use of precomputed neighbouring tiles containers.
...
- Moved short, frequently used functions to the BattleHex header for inlining
- Made BattleHex a class with a private hex value
- Moved getClosestTile implementation back to BattleHex
- Enabled access to static precomputed data in BattleHexArray via BattleHex
(note: circular dependency prevented static precomputed containers being directly placed in BattleHex)
2025-01-06 23:28:46 +01:00
MichalZr6
ac8104d56d
SonarCloud recomendations.
...
Code review follow-up:
- Replace std::vector with boost::small_vector
- Rename function merge to insert
2025-01-06 23:28:45 +01:00
MichalZr6
44a645b5e0
use bitset for presenceFlags and steady_clock for measurments
2025-01-06 23:28:45 +01:00
MichalZr6
794595184e
use class scope static instead of function scope
2025-01-06 23:28:45 +01:00
MichalZr6
7a8edff419
minor fixes
2025-01-06 23:28:44 +01:00
MichalZr6
fb9a3da651
Unit.cpp refactor and some other minor changes
2025-01-06 23:28:44 +01:00
MichalZr6
e3516120d8
Refactor destructibleEnemyTurns
2025-01-06 23:18:20 +01:00
MichalZr6
8c3a417527
Cleanup
2025-01-06 23:18:20 +01:00
MichalZr6
78845706c9
GetClosestTile refactor
2025-01-06 23:18:19 +01:00
MichalZr6
5f799d41b3
Use cached neighbouring tiles where possible
2025-01-06 23:18:19 +01:00
MichalZr6
a99274d72e
BattleHexArray - new container for BattleHexes
2025-01-06 23:18:18 +01:00
Ivan Savenko
ef8408fa5a
Fix tests
...
Regression from #5158
2025-01-06 21:18:28 +00:00
Ivan Savenko
046b59cf77
Merge pull request #5219 from IvanSavenko/ai_building_fix
...
Fixes for AI town building logic
2025-01-06 21:55:24 +02:00
Ivan Savenko
0de62e0b96
Merge pull request #5211 from godric3/map-editor-town-same-as-player
...
Map editor: random town same as player faction
2025-01-06 21:52:48 +02:00
Ivan Savenko
094a037096
Merge pull request #5212 from IvanSavenko/keymaster_popup
...
Added popup for keymasters/border guards similar to teleporters
2025-01-06 21:52:23 +02:00
Ivan Savenko
8468469976
Fixes for AI town building logic
...
- Fixes AI not considering non-built dwellings
- AI will now skip evaluation of towns in which construction today is no
longer possible
2025-01-06 16:20:53 +00:00
Ivan Savenko
19c981fc56
Added similar screen for Obelisk, moved assets to dedicated folder
2025-01-06 13:05:45 +00:00
Ivan Savenko
c3952b31f1
Merge pull request #5158 from IvanSavenko/bonus_caching
...
[1.6.3] Bonus caching improvements
2025-01-06 14:38:34 +02:00
Ivan Savenko
6d0dc9c5bb
Added popup for keymasters/border guards similar to teleporters
2025-01-05 23:22:46 +00:00
godric3
4b7792075d
map editor: option to set random town same as player faction
2025-01-05 21:57:11 +01:00
Ivan Savenko
73d1675ae3
Code cleanup, fixes to discovered regressions
2025-01-05 15:41:42 +00:00
Ivan Savenko
af83a3043e
Merge pull request #5148 from Laserlicht/h3c_vcmp_converter
...
[1.6.x] h3c to vcmp converter
2025-01-04 23:19:25 +02:00
Ivan Savenko
83b9a8d750
Fixes for regressions
2025-01-04 15:09:50 +00:00
Ivan Savenko
dfe8a95f8c
Fix build
2025-01-04 15:09:50 +00:00
Ivan Savenko
ea368c5176
Inlined methods commonly used by pathfinder for better optimization
2025-01-04 15:09:50 +00:00
Ivan Savenko
dea1eba20b
Rework and optimize turnInfo used by pathfinder
2025-01-04 15:09:50 +00:00
Ivan Savenko
579b64cd39
Fix build
2025-01-04 15:09:50 +00:00
Ivan Savenko
39d2f27589
Remove remaining usages of CCheckProxy class
2025-01-04 15:09:50 +00:00
Ivan Savenko
919588f7ff
Added cache for common hero-based bonuses
2025-01-04 15:09:50 +00:00
Ivan Savenko
157d6d30c8
Move rest of commonly-accessed UnitState queries to bonus cache
2025-01-04 15:09:50 +00:00
Ivan Savenko
05397e2aaf
Caching of bonuses that are requested with different durations
2025-01-04 15:09:50 +00:00
Ivan Savenko
16cfb51f3e
Initial version of new bonus caching system
2025-01-04 15:09:50 +00:00
Ivan Savenko
4ccd860b2f
Fix possible crash on loading save with invalid buildings, e.g. Mage
...
Guild 4 in towns without one
2025-01-03 15:41:26 +00:00
Laserlicht
dc406ae906
remove json campaign override
2025-01-02 21:42:32 +01:00
Ivan Savenko
56a30d32af
Merge pull request #5179 from godric3/map-editor-fix-copying-monster
...
map editor: fix crash when copying monster
2025-01-02 22:12:48 +02:00
Ivan Savenko
dc7e5283c0
Merge pull request #5185 from vcmi/fix_blocked_paths
...
Fix blocked paths
2025-01-02 21:48:06 +02:00
Ivan Savenko
3ce1c377d2
Merge pull request #5182 from IvanSavenko/crashfixes
...
[1.6.2] Crashfixes for bugs discovered via Google Play
2025-01-02 21:38:25 +02:00
Tomasz Zieliński
685403c588
Cleanup
2025-01-02 18:12:59 +01:00
Tomasz Zieliński
a88a994d75
Proper fix for the issue
2025-01-02 18:12:40 +01:00
Tomasz Zieliński
ce003af4b9
Heavier penalty for routing roads behind monoliths
2025-01-02 17:41:01 +01:00
Tomasz Zieliński
0e38882694
Fix blocked paths to objects at the bottom of the zone
2025-01-02 17:18:06 +01:00
Ivan Savenko
bc624ab654
Do not add non-existing buildings to H3 towns
...
Such as Mages Guild 4-5 to Fortress, or all 4 special buildings to towns
without them
2025-01-02 13:46:49 +00:00
Ivan Savenko
46442fbcca
Correctly remove unsupported (e.g. era) mods from active preset
2025-01-01 21:01:46 +00:00
Ivan Savenko
485361939a
Added information on mod loading failure to inform player on broken mods
2025-01-01 20:59:32 +00:00
Ivan Savenko
657b97202b
Clarified ifdef magic in crash handling
2025-01-01 20:58:30 +00:00
godric3
e189d6a737
map editor: fix crash when copying monster
2024-12-31 14:46:23 +01:00
Laserlicht
c5b8a4fd61
static const for globals
2024-12-30 18:31:33 +01:00
Laserlicht
5c6ce47371
better fix
2024-12-30 18:08:49 +01:00
Laserlicht
f72084cb26
fix upgrades
2024-12-29 03:15:58 +01:00
Laserlicht
5396ced0a6
don't showing 3 buttons for sharpsh. upgr. (gelu)
2024-12-27 17:26:47 +01:00