c3012105e2
Fix duplicated hero in Song for the Father campaign
2024-01-16 14:45:38 +02:00
c21913f661
Fixed initialization of move points and mana for dismissed heroes
2024-01-15 23:16:48 +02:00
7ffe014d6b
Remove allowed artifacts list from arthandler
...
1. Handlers should not contain non-const game state data
2. This field was duplicating same field in CMap
3. Due to removal of VLC serialization, this field is not updated on map
load leading to issues with artifact randomization
2023-12-11 15:06:04 +02:00
ee7bd87b8d
Fix crash on losing mission-critical hero in battle
2023-12-10 16:14:01 +02:00
e00d871082
Fix few more warnings on game start
2023-11-27 14:08:49 +02:00
c872f8418f
Implemented serialization of MapObjectSubID, refactoring of related code
2023-11-17 21:18:34 +02:00
9f906ff1d2
Remove pointer to CGObjectInstance from map header
2023-11-17 16:39:15 +02:00
d71b0b6952
Merge pull request #3179 from vcmi/fix-3173
...
#3173 - fix trap crash on random hero
2023-11-16 17:27:13 +02:00
76956cfe3a
Merge pull request #3188 from IvanSavenko/remove_identifier_implicit_int_conversion2
...
Remove implicit conversion of identifier to integer
2023-11-16 17:26:32 +02:00
52050d0ef1
Fix build
2023-11-15 15:55:19 +02:00
6cb1f6ff11
Remove all remaining implicit conversion in lib
2023-11-15 15:55:19 +02:00
96c81be68e
Win/loss conditions now use VariantIdentifier. Removed non-implemented
...
options
2023-11-15 15:55:19 +02:00
13763cad8e
Remove few more implicit conversions
2023-11-15 15:55:19 +02:00
abad4b01ce
Remove explicit convesion to int in operators
2023-11-15 15:55:19 +02:00
0842f5afee
Removed remaining usages of std::vector<bool>
2023-11-15 15:55:18 +02:00
d4496c81f9
Fix memory leaks in library
2023-11-13 16:27:15 +02:00
20ef3a69e7
Fix most of memleaks discovered by valgrind
2023-11-13 16:27:15 +02:00
35ee8c1397
Only apply normal mana regen for retreated heroes in taverns (h3 logic)
2023-11-12 19:30:33 +02:00
bbd3312705
Fix randomization of heroes in campaigns
2023-11-12 19:18:17 +02:00
142d0083d5
#3173 - fix trap crash on random hero
2023-11-12 16:14:06 +02:00
5c810df36f
Reorganized types registration code
2023-11-11 00:39:08 +02:00
4a7fa9bf8c
Simplified CTypeList class
2023-11-08 22:05:36 +02:00
ed66fc2fb3
Minor optimization of map startup time
2023-11-08 21:27:05 +02:00
0691dfef3b
Moved stateful artifact randomization logic to gamestate from handler
2023-11-08 21:27:05 +02:00
2cc8b5baeb
Fix map startup
2023-11-08 21:27:05 +02:00
5487f07d3b
added toEntity overload that accepts generic Services class
2023-11-04 17:04:53 +02:00
04aeea9b68
use toEnum instead of getNum for switch'es
2023-11-03 19:20:25 +02:00
184f5a72cc
Use toEntity/toXXX methods in Identifier instead VLC objects access
2023-11-03 16:03:29 +02:00
8d5fa41a19
Minor fixes
2023-11-03 16:03:29 +02:00
885dce0c27
Replace static_cast's of Identifiers with getNum call
2023-11-03 16:03:29 +02:00
2b9c362d5b
Explicitly convert identifier to underlying enumeration
2023-11-03 16:03:29 +02:00
b42f073f0c
Stabilization
2023-11-01 18:26:57 +02:00
8346d71c98
Remove more subID access
2023-11-01 14:44:05 +02:00
5cdbf408c7
Slightly simplified heroes initialization
2023-11-01 14:43:20 +02:00
461c481ef3
Fix game startup
2023-11-01 14:43:20 +02:00
cc30bdda04
Remove few more subID usages
2023-11-01 14:43:20 +02:00
7a09646009
Cleaned up dwelling randomization
2023-11-01 14:43:20 +02:00
dcb8f4fc7b
Moved object type randomization to object class
2023-11-01 14:43:20 +02:00
03e1169781
Reduced number of accesses to CGObjectInstance::subID
2023-11-01 14:43:20 +02:00
7107b3202f
Merge pull request #3069 from SoundSSGood/artifact-location-id
...
ArtifactLocation now use ID for artHolder identification
2023-11-01 14:41:36 +02:00
caffc8f3cd
Merge pull request #3122 from vcmi/fix-2993
...
#2993 - destruct battle info first when destructing CGameState
2023-10-31 21:43:55 +02:00
25b64dd08b
Update lib/gameState/CGameState.cpp
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com >
2023-10-31 21:43:06 +02:00
ab2f6abb87
ArtifactLocation now use ID for artHolder identification part2
2023-10-29 17:46:13 +02:00
4d6d64837f
#2993 - destruct battle info first when destruction CGameState
2023-10-29 09:41:22 +02:00
f01ec55d21
Use the "nullptr" literal.
...
"nullptr" should be used to denote the null pointer
2023-10-27 18:18:59 +00:00
b6b75beb29
Fixes for map editor
...
1) fix owner serialization for hero placeholder
2) fix roads/rivers layout
3) fix lasso
2023-10-24 23:58:26 +02:00
3880ea58b9
Merge branch 'josch/dos2unix' into develop
2023-10-22 18:39:03 +03:00
ac925bb786
Renamed new types for consistency with code style
2023-10-22 16:55:19 +03:00
80e6485965
MetaIdentifier now uses std::variant internally
2023-10-22 16:55:19 +03:00
b394158dc9
Bonus Source ID now uses metaidentifier
2023-10-22 16:55:18 +03:00