Commit Graph
95 Commits
Author SHA1 Message Date
MichalZr6 a8f9ac41e1 Fix no damage chance for catapult with no ballistics 2025-03-13 17:50:18 +01:00
MichalZr6 749149a679 Fixes following reviews
Use std::optional and improve textSearchSimilarityScore()
2025-03-12 21:40:07 +01:00
MichalZr6 4b0fe811ac Contains returns false instead of true for invalid hexes 2025-03-12 17:55:50 +01:00
MichalZr6 3f4616eb0f SonarCloud fixes 2025-03-12 17:44:13 +01:00
MichalZr6 9fbb2d7370 Fix: use LIBRARY instead of VLC 2025-03-11 23:45:59 +01:00
MichalZr6 5363424451 Small fixes to search mapobject feature:
- Trim overly long names to prevent incorrect item display
- Use getLocaleName() for proper locale-aware to_lower conversion
- Implement scoring-based sorting for better search match ranking
- Remove Boost dependency: replace with std::string::find() and rfind()
2025-03-11 23:22:04 +01:00
MichalZr6 2973a769df Remove setting up en_US.UTF-8 locale in VCMIDirsWIN32::init() 2025-03-11 23:22:04 +01:00
MichalZr6 e993c2aed0 Use locale based on language set in config 2025-03-11 23:21:12 +01:00
MichalZr6 38b994f28e Init lastWrite and date for campaigns 2025-03-11 22:36:26 +01:00
MichalZr6 ea1c911e4d Update maps sorting logic 2025-03-11 22:36:26 +01:00
MichalZr6 c34052e548 French translation reviewed 2025-03-03 15:41:11 +01:00
MichalZr6 f6eb59de40 Russian translation update 2025-03-03 15:41:11 +01:00
MichalZr6 206c4c8f70 Chinese translation update with note about AI generation 2025-03-03 15:41:11 +01:00
MichalZr6 4bf7bb1daa French translation update with note about AI generation 2025-03-03 15:41:11 +01:00
MichalZr6 7f175be0ed Portuguese translation update with note about AI generation 2025-03-03 15:41:11 +01:00
MichalZr6 c641b43dfb Vietnamese translation update with note about AI generation 2025-03-03 15:41:11 +01:00
MichalZr6 4258db3483 Spanish translation update with note about AI generation 2025-03-03 15:41:11 +01:00
MichalZr6 0dd883f453 Hungarian translation update with note about AI generation 2025-03-03 15:41:11 +01:00
MichalZr6 034fe0016e Italian translation update with note about AI generation 2025-03-03 15:41:11 +01:00
MichalZr6 4d90d7b397 Polish translation update 2025-03-03 15:41:11 +01:00
MichalZr6 3ad2df536f Fix hungarian translation for map editor 2025-02-03 23:44:27 +01:00
MichalZr6 e161e3dfde Italian translation 2025-02-03 18:40:56 +01:00
MichalZr6 93414eb3bf Boost::small_vector for UpgradeInfo data, UpgradeInfo minor changes 2025-01-31 12:23:48 +01:00
MichalZr6 358189d9c3 Fix creating buttons for unavailable upgrades 2025-01-30 16:00:22 +01:00
MichalZr6 88088c47ac Spanish translation update 2025-01-29 12:00:27 +01:00
MichalZr6 826c7de629 Hungarian translations 2025-01-28 14:24:36 +01:00
MichalZr6 d4b25e8a58 Polish translation update for .ts files 2025-01-27 08:10:11 +01:00
MichalZr6 9a47c3100c Restructure mod.json 2025-01-27 08:00:33 +01:00
MichalZr6 30bd975f95 Use unit->getHexes()
instead of battle::Unit::getHexes(stack->getPosition(), stack->doubleWide(), stack->unitSide())
2025-01-21 13:23:18 +01:00
MichalZr6 a1593948b7 Restore LF, use JsonKeys for logging, fix BattleHex description 2025-01-21 13:23:17 +01:00
MichalZr6 ecdd394bb1 Use BattleHex as const ref wherever possible
Minor Fixes
Drop unused function from BattleHexArray
2025-01-21 13:23:17 +01:00
MichalZr6 8f63a82d60 Minor changes with BattleHex and BattleHexArray 2025-01-21 13:23:17 +01:00
MichalZr6 b95128bea5 Update polish.ts files 2025-01-08 15:25:47 +01:00
MichalZr6 dbe82b94f6 Changes following review:
- shared_ptr for destructibleEnemyTurns instead of raw pointer
- drop implicit int conversion for BattleHex class
  and implement toInt() instead
- implement necessary operators in BattleHex
- adjust code to work properly with JSON serializer
2025-01-08 07:24:43 +01:00
MichalZr6 4031006317 Drop battle elapsed time measurement, restore avHexes.
Github validation report fixes.
2025-01-06 23:28:47 +01:00
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
MichalZr6 f792eb2da5 Add time measurement for auto-battle 2025-01-06 23:13:55 +01:00
MichalZr6 4e9f052e98 Fix creature upgrades in Fort and town's dwellings 2024-12-30 01:14:57 +01:00
MichalZr6 d14e8b7261 Update Russian translation for .ts files 2024-12-21 23:52:17 +01:00
MichalZr6 b2a24338cb Fix too long strings 2024-12-20 18:00:25 +01:00
MichalZr6 6bd765b89e Polish translation to reach 100% 2024-12-20 16:53:37 +01:00
MichalZr6 f893c80192 Move UpgradeInfo class to header and source files 2024-12-19 14:13:09 +01:00
MichalZr6 af9445c16f Fixes following review 2024-12-17 22:34:06 +01:00
MichalZr6 bbc41fc1b9 fix typo, fix unused variable 2024-12-17 22:34:06 +01:00
MichalZr6 d8d3948ac3 Fix AI to use hillFort all available upgrades. UpgradeInfo refactor. 2024-12-17 22:34:06 +01:00
MichalZr6 4a398c7b72 polish translation update 2024-12-17 16:38:41 +01:00
MichalZr6 f4a15a198b Cleanup 2024-12-15 21:32:23 +01:00
MichalZr6 81e29d6ce2 Return built in default image 2024-12-15 11:43:39 +01:00
MichalZr6 5fc61df717 fix_crash_loading_frames_from_def 2024-12-15 11:43:39 +01:00
MichalZr6 0a99d60ee7 polish translation update 2024-12-14 15:42:50 +01:00
MichalZr6 31058854c5 Fixes following review. 2024-12-09 15:09:56 +01:00
MichalZr6 ddb5e7670b Polish translation update 2024-12-09 15:09:56 +01:00
MichalZr6 f823b8addf Following review 2024-11-19 10:57:20 +01:00
MichalZr6 ab1f1d6d99 Fix crash on miniHillFort popup window 2024-11-19 10:53:16 +01:00
MichalZr6 7e2cad158a HillFort fix 2024-11-19 10:53:16 +01:00
MichalZr6 259fcedc85 Fix flying units move into damaging obstacles 2024-10-03 23:03:36 +02:00
MichalZr6 edf43f5702 Get and translate messages on client side 2024-09-24 19:12:05 +02:00
MichalZr6 8a42127210 Restore googletest module from upstream 2024-09-24 18:29:01 +02:00
MichalZr6 6cf423d977 Fix Hill Fort upgrade logic when there are two levels
Fixes #2503
2024-09-24 18:29:01 +02:00
MichalZr6 f3d9a075fc Fix polish description translation 2024-09-24 18:29:01 +02:00
MichalZr6 303b0a6552 Fixes based on review remarks 2024-09-24 18:29:01 +02:00
MichalZr6 5c6abb30c6 Fix typo 2024-09-24 18:29:01 +02:00
MichalZr6 162e2ab22e Additional Wooden Hill Fort message
More verbose info-message for unavailable upgrades (creature levels 5 and higher). Some minor refactors.

Added other statusbar message if it's standard Hill Fort
2024-09-24 18:29:01 +02:00
MichalZr6 a66651cdbb Trigger workflow 2024-09-19 11:31:08 +02:00
MichalZr6 5f86f5504b Fix #3286 2024-09-19 09:51:18 +02:00
MichalZr6 7fa965e78b Fix unintentionally broken line endings to LF in Client.cpp 2024-09-19 09:20:36 +02:00
MichalZr6 e13e72d093 Moved code from NetpacksClient.cpp to Client.cpp
Created new function CClient::updatePath that will invalidate paths and update given hero displayed path
2024-09-19 08:43:54 +02:00
MichalZr6 6b4220c510 Add update paths code to netpack visiting methods 2024-09-19 08:43:53 +02:00
MichalZr6 cb9070fb5b Fix unnecesarry error log in console from CBattleInfoEssentials::battleGetFightingHero 2024-09-15 08:51:05 +02:00
MichalZr6 ca3d81f047 fix crash on heroRoles.clear() 2024-08-28 15:22:00 +02:00
MichalZr6 7ae7c13964 drop setting reachability for turrets 2024-08-28 15:22:00 +02:00
MichalZr6andIvan Savenko 2a6525c5ef Check battleInt->curInt instead of battleInt 2024-08-25 19:43:21 +00:00
MichalZr6andIvan Savenko 619b35ab33 Allow dialogs when in battle interface
But also it is not our turn
2024-08-25 19:43:14 +00:00
MichalZr6 9daabd0710 Check battleInt->curInt instead of battleInt 2024-08-23 23:30:50 +02:00
MichalZr6 d0e0ab767c Allow dialogs when in battle interface
But also it is not our turn
2024-08-23 18:03:58 +02:00
MichalZr6 0be5a1a2ad Code review followup with additional refactor
Changes following review
2024-08-23 10:43:48 +02:00
MichalZr6 0d5a9b8e3b Refactor for previous fix in CSpellHandler 2024-08-23 09:43:41 +02:00
MichalZr6 5684db1953 Addressed review feedback
Additional changes after incorporating PlayerColor in `Validator::Validate()`
2024-08-23 09:43:40 +02:00
MichalZr6 a82ce2f96a Fix negative QColor values 2024-08-23 09:43:40 +02:00
MichalZr6 568a792f88 Refactor containers names in CObjectClassesHandler 2024-08-23 09:43:40 +02:00
MichalZr6 e7b94014e1 allow lowercase 'X' in spellRangeInHexes 2024-08-18 18:46:54 +02:00
MichalZr6 ffaaa7da15 blockingDialog functions: the answer parameter can be negative 2024-08-09 00:28:28 +02:00
MichalZr6 2f0bea9075 Update mock_battle_Unit.h 2024-06-12 13:37:43 +02:00
MichalZr6 15f86c0284 Fixed issues from review 2024-06-11 16:47:23 +02:00
MichalZr6 65d22f17ae proper logging of drained life and resurrected count
new struct for keeping track of healed HP (also drained life) and resurrected count
2024-06-09 23:54:20 +02:00