Commit Graph
906 Commits
Author SHA1 Message Date
MichalZr6 9964545e7a PlayerSelectionDialog implementation + code cleanup 2025-05-13 12:51:40 +02:00
MichalZr6 87326ce9d9 prompt user for adding required mod
- when object is placed to map and its mod is not in the map's required mod list -> show question messagebox
- fix code in modAssessmentAll function
2025-05-13 12:51:40 +02:00
MichalZr6 15b134b522 translatable new string in validator.cpp 2025-05-13 12:51:40 +02:00
MichalZr6 e3a661f91a iterate objects only for grail special case 2025-05-13 12:51:40 +02:00
MichalZr6 9f8c4d3747 Map validation results window changes:
- the results window's size will adjust to the length of the messages
- valid map will display appriopiate message now in validation results
- item's text wordwrap will activate after window size extends given width limit
2025-05-13 12:51:40 +02:00
Ivan Savenko 35644da2b7 Reogranize callback-related classes on 1 file = 1 class basis 2025-05-12 22:07:09 +03:00
Ivan Savenko 4b30336d03 Fix issues detected by Sonar 2025-05-11 19:50:57 +03:00
Ivan Savenko 4b77140f4a Implemented playerGlobal visit mode for objects like cartographer 2025-05-06 18:53:43 +03:00
Ivan Savenko 62e774c91e Add new rewards for configurable objects 2025-05-06 17:28:11 +03:00
Ivan Savenko 313a1119ea Merge pull request #5684 from altiereslima/develop
Portuguese translation update
2025-05-05 16:04:57 +03:00
Ivan Savenko 10deffbc55 Merge pull request #5676 from kdmcser/chinese
Update Chinese Translation
2025-05-05 16:02:43 +03:00
altiereslima 2675486e84 Portuguese translation update 2025-05-04 08:56:27 -03:00
kdmcser f7f36a3a2f Update Chinese Translation 2025-05-02 02:13:36 +08:00
Ivan Savenko 283adc37d7 Unit stack rebalancing rework
- CStackInstance::count is now private with accessor methods
- CStackInstance::experience renamed to totalExperience and now stores
total stack experience (multiplied by stack size) to reduce rounding
errors
- CStackInstance::totalExperience is now private with accessors methods
- stack experience is now automatically reallocated on stack management
- Removed buggy BulkSmartRebalanceStacks pack, that mostly duplicates
BulkRebalanceStacks
- Renamed BulkSmartSplitStack to BulkSplitAndRebalanceStack to drop
unclear "smart" in name
- Reworked split-and-rebalance logic to correctly reallocate stack
experience
2025-05-01 18:18:30 +03:00
Ivan Savenko ac26b3ed9b Merge pull request #5658 from IvanSavenko/memleak_fix
Fix discovered memory leaks & reduce usage of raw pointers
2025-04-30 13:38:37 +03:00
Ivan Savenko 279d89f971 Merge pull request #5659 from IvanSavenko/artifact_split
Reorganized artifact-related classes
2025-04-30 13:23:41 +03:00
Ivan Savenko f70ad2c15b Reorganized artifact-related classes
- files now generally contain only 1 class (except for tightly coupled
classes)
- files are now located in lib/entities/artifact directory
- removed excessive includes

No changes to functionality
2025-04-29 13:29:08 +03:00
George King cc9310afb6 Typo fix 2025-04-29 12:07:51 +02:00
Ivan Savenko c0fb1d1b3b Replace some raw pointers with unique's or optional 2025-04-29 12:11:10 +03:00
Ivan Savenko 4bafab9ad4 Fix possible leak due to usage of raw pointers in filesystem 2025-04-29 12:11:10 +03:00
Ivan Savenko 5433b07e5f Merge pull request #5601 from IvanSavenko/const_trans_ptr_remove
Remove usage of raw, owning pointers from game state
2025-04-29 12:07:40 +03:00
George King 3f77609335 Map editor translation 2025-04-28 18:53:10 +02:00
Laserlicht b2984211b4 german update 2025-04-27 21:01:42 +02:00
Ivan Savenko 93b18ee94b Fix some issues detected by Sonar & code review, fix build 2025-04-27 14:57:31 +03:00
Ivan Savenko d34b47bb20 Remove pointers from artifacts 2025-04-27 14:57:31 +03:00
Ivan Savenko 9e6397d1f9 Remove pointer to boat from CGHeroInstance 2025-04-27 14:57:30 +03:00
Ivan Savenko cd7732456a Remove pointer to objects from TerrainTile 2025-04-27 14:57:30 +03:00
Ivan Savenko 63d00b080e Removed pointer to army from StackInstance 2025-04-27 14:57:30 +03:00
Ivan Savenko 16a06179cf Use ArtifactInstanceID in CGArtifact 2025-04-27 14:57:30 +03:00
Ivan Savenko ab11d2b075 Remove quests from CMap, now solely owned by quest objects 2025-04-27 14:57:30 +03:00
Ivan Savenko 71bc1054d0 BattleStart pack now uses unique_ptr 2025-04-27 14:57:30 +03:00
Ivan Savenko c02a8a84fd Stacks of armed instance are now unique_ptr 2025-04-27 14:57:30 +03:00
Ivan Savenko 745040def3 Access to heroes storage in CMap is now done via public methods 2025-04-27 14:57:30 +03:00
Ivan Savenko dda5c9f13a Map objects now use shared_ptr (editor) 2025-04-27 14:57:30 +03:00
Ivan Savenko 2ca1748e96 Artifact instances are now owned solely by CMap 2025-04-27 14:57:30 +03:00
Ivan Savenko 797646cc05 Quests in map now use shared_ptr instead of const ptr 2025-04-27 14:57:30 +03:00
Ivan Savenko 417ea6451a Remove ConstTransitivePtr from hero and town instances 2025-04-27 14:57:30 +03:00
Ivan Savenko 204b13fc07 Merge pull request #5608 from Laserlicht/campaigneditor
campaign editor
2025-04-15 17:55:13 +03:00
Laserlicht c9f64993c1 code review 2025-04-12 20:46:33 +02:00
Laserlicht 44bf6bdf48 fix shortcut 2025-04-12 14:01:21 +02:00
Laserlicht 100f3606db code review 2025-04-12 13:39:08 +02:00
Laserlicht e4e77b9cc5 option to show full background 2025-04-11 22:58:49 +02:00
Laserlicht 47cfe01141 seperate identifier 2025-04-11 00:49:26 +02:00
Laserlicht af5e95feee init fix 2025-04-11 00:07:58 +02:00
Laserlicht 562b3f777d code review (second batch) 2025-04-10 21:41:22 +02:00
Laserlicht 5b74f7f19e code review (first batch) 2025-04-10 21:04:24 +02:00
Laserlicht 42673c1bab fix error 2025-04-05 23:11:30 +02:00
Laserlicht 8dc1170215 set creation date 2025-04-05 23:09:58 +02:00
Laserlicht 28169b051e campaign editor 2025-04-05 22:30:31 +02:00
George King b9ef9f64bb Forgotten setAcceptDrops 2025-04-05 11:12:37 +02:00