mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
introduce toResourceType
This commit is contained in:
@@ -1127,7 +1127,7 @@ void CCastleBuildings::enterFountain(const BuildingID & building, BuildingSubID:
|
||||
else //Mystic Pond produced something;
|
||||
{
|
||||
descr += "\n\n" + hasProduced;
|
||||
boost::algorithm::replace_first(descr,"%s",MetaString::createFromTextID(LIBRARY->resourceTypeHandler->getById(town->bonusValue.first)->getNameTextID()).toString());
|
||||
boost::algorithm::replace_first(descr,"%s",MetaString::createFromTextID(GameResID(town->bonusValue.first).toResource()->getNameTextID()).toString());
|
||||
boost::algorithm::replace_first(descr,"%d",std::to_string(town->bonusValue.second));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user