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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user