1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Some working version, needs corrections still.

This commit is contained in:
Tomasz Zieliński
2023-04-29 11:46:03 +02:00
parent 3c9599657b
commit d325051213
8 changed files with 119 additions and 46 deletions

View File

@ -113,7 +113,8 @@ void CMapGenerator::initQuestArtsRemaining()
//TODO: Move to QuestArtifactPlacer?
for (auto art : VLC->arth->objects)
{
if (art->aClass == CArtifact::ART_TREASURE && VLC->arth->legalArtifact(art->getId()) && art->constituentOf.empty()) //don't use parts of combined artifacts
//Don't use parts of combined artifacts
if (art->aClass == CArtifact::ART_TREASURE && VLC->arth->legalArtifact(art->getId()) && art->constituentOf.empty())
questArtifacts.push_back(art->getId());
}
}