mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Reorganized artifact-related classes
- files now generally contain only 1 class (except for tightly coupled classes) - files are now located in lib/entities/artifact directory - removed excessive includes No changes to functionality
This commit is contained in:
@ -15,13 +15,13 @@
|
||||
#include "../GameLibrary.h"
|
||||
#include "../texts/CGeneralTextHandler.h"
|
||||
#include "../CRandomGenerator.h"
|
||||
#include "../entities/artifact/CArtHandler.h"
|
||||
#include "../entities/faction/CTownHandler.h"
|
||||
#include "../entities/faction/CFaction.h"
|
||||
#include "../entities/hero/CHero.h"
|
||||
#include "../mapObjectConstructors/AObjectTypeHandler.h"
|
||||
#include "../mapObjectConstructors/CObjectClassesHandler.h"
|
||||
#include "../mapping/CMapEditManager.h"
|
||||
#include "../CArtHandler.h"
|
||||
#include "../constants/StringConstants.h"
|
||||
#include "../filesystem/Filesystem.h"
|
||||
#include "CZonePlacer.h"
|
||||
@ -110,7 +110,7 @@ void CMapGenerator::initQuestArtsRemaining()
|
||||
{
|
||||
auto art = artID.toArtifact();
|
||||
//Don't use parts of combined artifacts
|
||||
if (art->aClass == CArtifact::ART_TREASURE && LIBRARY->arth->legalArtifact(art->getId()) && art->getPartOf().empty())
|
||||
if (art->aClass == EArtifactClass::ART_TREASURE && LIBRARY->arth->legalArtifact(art->getId()) && art->getPartOf().empty())
|
||||
questArtifacts.push_back(art->getId());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user