mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Nullkiller: stabilization
This commit is contained in:
committed by
Andrii Danylchenko
parent
dec723b4be
commit
37f49f2ac5
@@ -283,6 +283,17 @@ void BuildAnalyzer::updateDailyIncome()
|
||||
}
|
||||
}
|
||||
|
||||
bool BuildAnalyzer::hasAnyBuilding(int32_t alignment, BuildingID bid) const
|
||||
{
|
||||
for(auto tdi : developmentInfos)
|
||||
{
|
||||
if(tdi.town->alignment == alignment && tdi.town->hasBuilt(bid))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void TownDevelopmentInfo::addExistingDwelling(const BuildingInfo & existingDwelling)
|
||||
{
|
||||
existingDwellings.push_back(existingDwelling);
|
||||
|
||||
Reference in New Issue
Block a user