mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
CArtifact refactoring
This commit is contained in:
@@ -118,7 +118,7 @@ void CMapGenerator::initQuestArtsRemaining()
|
||||
for (auto art : VLC->arth->objects)
|
||||
{
|
||||
//Don't use parts of combined artifacts
|
||||
if (art->aClass == CArtifact::ART_TREASURE && VLC->arth->legalArtifact(art->getId()) && art->constituentOf.empty())
|
||||
if (art->aClass == CArtifact::ART_TREASURE && VLC->arth->legalArtifact(art->getId()) && art->partOf.empty())
|
||||
questArtifacts.push_back(art->getId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user