Selaa lähdekoodia

AI will not wait to conwuer fort if possible

Tomasz Zieliński 3 vuotta sitten
vanhempi
sitoutus
6ae3b77d80
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      AI/Nullkiller/Engine/PriorityEvaluator.cpp

+ 1 - 1
AI/Nullkiller/Engine/PriorityEvaluator.cpp

@@ -368,7 +368,7 @@ float RewardEvaluator::getStrategicalValue(const CGObjectInstance * target) cons
 
 
 		return dynamic_cast<const CGTownInstance *>(target)->hasFort()
 		return dynamic_cast<const CGTownInstance *>(target)->hasFort()
 			? (target->tempOwner == PlayerColor::NEUTRAL ? 0.8f : 1.0f)
 			? (target->tempOwner == PlayerColor::NEUTRAL ? 0.8f : 1.0f)
-			: 0.5f;
+			: 0.7f;
 
 
 	case Obj::HERO:
 	case Obj::HERO:
 		return ai->cb->getPlayerRelations(target->tempOwner, ai->playerID) == PlayerRelations::ENEMIES
 		return ai->cb->getPlayerRelations(target->tempOwner, ai->playerID) == PlayerRelations::ENEMIES