Pārlūkot izejas kodu

Allow all buildings

Added resource-silo and special buildings to things that AI can theoretically build.
Xilmi 1 gadu atpakaļ
vecāks
revīzija
53c51b4278
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      AI/Nullkiller/Analyzers/BuildAnalyzer.cpp

+ 6 - 1
AI/Nullkiller/Analyzers/BuildAnalyzer.cpp

@@ -40,7 +40,6 @@ void BuildAnalyzer::updateTownDwellings(TownDevelopmentInfo & developmentInfo)
 		for(BuildingID prefix : prefixes)
 		{
 			BuildingID building = BuildingID(prefix + level);
-
 			if(!vstd::contains(buildings, building))
 				continue; // no such building in town
 
@@ -79,6 +78,12 @@ void BuildAnalyzer::updateOtherBuildings(TownDevelopmentInfo & developmentInfo)
 		otherBuildings.push_back({BuildingID::HORDE_2});
 	}
 
+	otherBuildings.push_back({ BuildingID::RESOURCE_SILO });
+	otherBuildings.push_back({ BuildingID::SPECIAL_1 });
+	otherBuildings.push_back({ BuildingID::SPECIAL_2 });
+	otherBuildings.push_back({ BuildingID::SPECIAL_3 });
+	otherBuildings.push_back({ BuildingID::SPECIAL_4 });
+
 	for(auto & buildingSet : otherBuildings)
 	{
 		for(auto & buildingID : buildingSet)