#define VCMI_DLL #include "../stdafx.h" #include "CArtHandler.h" #include "CLodHandler.h" #include #include #include "../lib/VCMI_Lib.h" void loadToIt(std::string &dest, std::string &src, int &iter, int mode); extern CLodHandler *bitmaph; using namespace boost::assign; CArtHandler::CArtHandler() { VLC->arth = this; } void CArtHandler::loadArtifacts() { std::vector slots; slots += &CArtifact::spellBook, &CArtifact::warMachine4, &CArtifact::warMachine3, &CArtifact::warMachine2, &CArtifact::warMachine1, &CArtifact::misc5, &CArtifact::misc4, &CArtifact::misc3, &CArtifact::misc2, &CArtifact::misc1, &CArtifact::feet, &CArtifact::lRing, &CArtifact::rRing, &CArtifact::torso, &CArtifact::lHand, &CArtifact::rHand, &CArtifact::neck, &CArtifact::shoulders, &CArtifact::head; std::map classes = map_list_of('S',SartClass)('T',TartClass)('N',NartClass)('J',JartClass)('R',RartClass); std::string buf = bitmaph->getTextFile("ARTRAITS.TXT"), dump, pom; int it=0; for(int i=0; i<2; ++i) { loadToIt(dump,buf,it,3); } for (int i=0; i