Explorar o código

Fixed an issue that prevented AI from building stables

Prerequisites of dwellings now also inherit the armyStrength of their respective dwelling for the purpose of their evaluation.
Xilmi hai 10 meses
pai
achega
82ab49495e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      AI/Nullkiller/Analyzers/BuildAnalyzer.cpp

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

@@ -291,6 +291,7 @@ BuildingInfo BuildAnalyzer::getBuildingOrPrerequisite(
 				prerequisite.baseCreatureID = info.baseCreatureID;
 				prerequisite.prerequisitesCount++;
 				prerequisite.armyCost = info.armyCost;
+				prerequisite.armyStrength = info.armyStrength;
 				bool haveSameOrBetterFort = false;
 				if (prerequisite.id == BuildingID::FORT && highestFort >= CGTownInstance::EFortLevel::FORT)
 					haveSameOrBetterFort = true;