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
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
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
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
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
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
0a10fc30b8
(lib) Bonus subtype is now stored as metaidentifier that can store any
...
other identifier inside it
2023-10-22 16:54:43 +03:00
454ba44ac5
Merge pull request #2988 from IvanSavenko/configurable_extensions
...
Extension of configurable object functionality
2023-10-22 16:24:47 +03:00
0eba0ee686
show random maps
2023-10-21 02:12:34 +02:00
dd841bdaa7
Use enum instead of mix of bool's and int's for tile reveal
2023-10-16 00:12:38 +03:00
037efdf5fc
Improvements to type safety of Identifier class
...
- Constructor of Identifier from integer is now explicit
- Lobby hero/town selection now uses Identifiers instead of int's
- Removed serialization workaround for hero portraits
- Added dummy objects for custom heroes portraits for ID resolver to use
- HeroInstance now stores portrait ID only in case of custom portrait
- Fixed loading of campaign heroes portraits on RoE maps
2023-10-04 18:05:23 +03:00
0c94a4d891
Town name switched to id
2023-09-27 23:57:05 +02:00
5b24fe289b
Assembling difficulty json instead of overriding
2023-09-22 14:46:43 +02:00
099109b7d2
Minor fixes
2023-09-22 00:52:19 +02:00
cb3bbc6680
Restructured difficulty config
2023-09-20 16:12:26 +02:00