浏览代码

Lowered restrictions from hero-hiring.

Removed two restrictions from hero-hiring, that prevented AI from hiring heros in certain scenarios.
Xilmi 1 年之前
父节点
当前提交
9c6d8762c5
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

+ 0 - 3
AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

@@ -83,9 +83,6 @@ Goals::TGoalVec RecruitHeroBehavior::decompose(const Nullkiller * ai) const
 				}
 				}
 			}
 			}
 
 
-			if(treasureSourcesCount < 5 && (town->garrisonHero || town->getUpperArmy()->getArmyStrength() < 10000))
-				continue;
-
 			if(ai->cb->getHeroesInfo().size() < ai->cb->getTownsInfo().size() + 1
 			if(ai->cb->getHeroesInfo().size() < ai->cb->getTownsInfo().size() + 1
 				|| (ai->getFreeResources()[EGameResID::GOLD] > 10000 && !ai->buildAnalyzer->isGoldPressureHigh()))
 				|| (ai->getFreeResources()[EGameResID::GOLD] > 10000 && !ai->buildAnalyzer->isGoldPressureHigh()))
 			{
 			{