mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
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
This commit is contained in:
@@ -80,7 +80,7 @@ MapFormatFeaturesH3M MapFormatFeaturesH3M::getFeaturesAB()
|
||||
result.creaturesCount = 145; // + Conflux and new neutrals
|
||||
|
||||
result.heroesCount = 156; // + Conflux and campaign heroes
|
||||
result.heroesPortraitsCount = 163;
|
||||
result.heroesPortraitsCount = 159; // +Kendal, +young Cristian, +Ordwald
|
||||
result.heroesBytes = 20;
|
||||
|
||||
result.artifactsCount = 129; // + Armaggedon Blade and Vial of Dragon Blood
|
||||
@@ -100,6 +100,8 @@ MapFormatFeaturesH3M MapFormatFeaturesH3M::getFeaturesSOD()
|
||||
result.artifactsCount = 141; // + Combined artifacts
|
||||
result.artifactsBytes = 18;
|
||||
|
||||
result.heroesPortraitsCount = 163; // +Finneas +young Gem +young Sandro +young Yog
|
||||
|
||||
result.artifactSlotsCount = 19; // + MISC_5 slot
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user