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

Stables in Castle will now check for and give same bonuses as map stable

This commit is contained in:
Ivan Savenko
2025-02-18 14:35:52 +00:00
parent aef04236b9
commit 085409bea9
5 changed files with 28 additions and 3 deletions

View File

@@ -329,6 +329,14 @@ void CTownHandler::loadBuilding(CTown * town, const std::string & stringID, cons
loadBuildingBonuses(source["bonuses"], ret->buildingBonuses, ret);
if(!source["mapObjectLikeBonuses"].isNull())
{
VLC->identifiers()->requestIdentifierOptional("object", source["mapObjectLikeBonuses"], [=](si32 identifier)
{
ret->mapObjectLikeBonuses = MapObjectID(identifier);
});
}
if(!source["configuration"].isNull())
ret->rewardableObjectInfo.init(source["configuration"], ret->getBaseTextID());