1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Feature: Lodestar Grail should work.

This commit is contained in:
Dmitry Orlov
2020-12-10 04:05:37 +03:00
parent eb011e59c4
commit 8f331dce31
14 changed files with 77 additions and 32 deletions

View File

@@ -172,7 +172,7 @@ std::vector<BattleHex> CTown::defaultMoatHexes()
return moatHexes;
}
std::string CTown::getFactionName() const
std::string CTown::getLocalizedFactionName() const
{
if(faction == nullptr)
return "Random";
@@ -510,7 +510,7 @@ void CTownHandler::loadBuilding(CTown * town, const std::string & stringID, cons
if(stringID == source["upgrades"].String())
{
throw std::runtime_error(boost::str(boost::format("Building with ID '%s' of town '%s' can't be an upgrade of the same building.") %
stringID % ret->town->getFactionName()));
stringID % ret->town->getLocalizedFactionName()));
}
VLC->modh->identifiers.requestIdentifier(ret->town->getBuildingScope(), source["upgrades"], [=](si32 identifier)