1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Implemented mapping of hero portraits

This commit is contained in:
Ivan Savenko
2023-06-20 15:09:42 +03:00
parent 3913b8e98c
commit 6564502a0e
7 changed files with 42 additions and 12 deletions

View File

@@ -135,21 +135,19 @@ MapFormatFeaturesH3M MapFormatFeaturesH3M::getFeaturesHOTA(uint32_t hotaVersion)
if(hotaVersion < 3)
{
result.artifactsCount = 163; // + HotA artifacts
result.heroesCount = 177; // + Cove
result.heroesPortraitsCount = 187; // + Cove
result.heroesCount = 178; // + Cove
result.heroesPortraitsCount = 185; // + Cove
}
if(hotaVersion == 3)
{
result.artifactsCount = 165; // + HotA artifacts
result.heroesCount = 177; // + Cove + Giselle
result.heroesCount = 179; // + Cove + Giselle
result.heroesPortraitsCount = 188; // + Cove + Giselle
}
assert((result.heroesCount + 7) / 8 == result.heroesBytes);
assert((result.artifactsCount + 7) / 8 == result.artifactsBytes);
result.heroesCount = 179; // + Cove
return result;
}