mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
@@ -1404,6 +1404,16 @@ void VCAI::buildStructure(const CGTownInstance * t)
|
||||
return;
|
||||
if (tryBuildAnyStructure(t, std::vector<BuildingID>(extra, extra + ARRAY_COUNT(extra))))
|
||||
return;
|
||||
|
||||
//at the end, try to get and build any extra buildings with nonstandard slots (for example HotA 3rd level dwelling)
|
||||
std::vector<BuildingID> extraBuildings;
|
||||
|
||||
for (auto buildingInfo : t->town->buildings)
|
||||
if (buildingInfo.first > 43)
|
||||
extraBuildings.push_back(buildingInfo.first);
|
||||
|
||||
if (tryBuildAnyStructure(t, extraBuildings))
|
||||
return;
|
||||
}
|
||||
|
||||
bool VCAI::isGoodForVisit(const CGObjectInstance *obj, HeroPtr h, SectorMap &sm)
|
||||
|
||||
Reference in New Issue
Block a user