mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Minor fix.
This commit is contained in:
@@ -216,9 +216,13 @@ void CArtHandler::loadArtifacts(bool onlyTxt)
|
|||||||
if(desc[0] == '\"' && desc[desc.size()-1] == '\"')
|
if(desc[0] == '\"' && desc[desc.size()-1] == '\"')
|
||||||
desc = desc.substr(1,desc.size()-2);
|
desc = desc.substr(1,desc.size()-2);
|
||||||
|
|
||||||
|
if(onlyTxt)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Fill in information about combined artifacts. Should perhaps be moved to a config file?
|
// Fill in information about combined artifacts. Should perhaps be moved to a config file?
|
||||||
nart.constituentOf = NULL;
|
nart.constituentOf = NULL;
|
||||||
switch (nart.id) {
|
switch (nart.id)
|
||||||
|
{
|
||||||
case 129: // Angelic Alliance
|
case 129: // Angelic Alliance
|
||||||
nart.constituents = new std::vector<ui32>();
|
nart.constituents = new std::vector<ui32>();
|
||||||
*nart.constituents += 31, 32, 33, 34, 35, 36;
|
*nart.constituents += 31, 32, 33, 34, 35, 36;
|
||||||
@@ -286,11 +290,12 @@ void CArtHandler::loadArtifacts(bool onlyTxt)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!onlyTxt)
|
|
||||||
artifacts.push_back(nart);
|
artifacts.push_back(nart);
|
||||||
}
|
}
|
||||||
sortArts();
|
sortArts();
|
||||||
if(!onlyTxt)
|
if(onlyTxt)
|
||||||
|
return;
|
||||||
|
|
||||||
addBonuses();
|
addBonuses();
|
||||||
|
|
||||||
// Populate reverse mappings of combinational artifacts.
|
// Populate reverse mappings of combinational artifacts.
|
||||||
|
Reference in New Issue
Block a user