diff --git a/AI/Nullkiller/Analyzers/ObjectClusterizer.cpp b/AI/Nullkiller/Analyzers/ObjectClusterizer.cpp index 5c4bb4cea..8d318badf 100644 --- a/AI/Nullkiller/Analyzers/ObjectClusterizer.cpp +++ b/AI/Nullkiller/Analyzers/ObjectClusterizer.cpp @@ -467,7 +467,7 @@ void ObjectClusterizer::clusterizeObject( heroesProcessed.insert(path.targetHero); - float priority = priorityEvaluator->evaluate(Goals::sptr(Goals::ExecuteHeroChain(path, obj))); + float priority = priorityEvaluator->evaluate(Goals::sptr(Goals::ExecuteHeroChain(path, obj)), 5); if(ai->settings->isUseFuzzy() && priority < MIN_PRIORITY) continue; @@ -490,7 +490,7 @@ void ObjectClusterizer::clusterizeObject( heroesProcessed.insert(path.targetHero); - float priority = priorityEvaluator->evaluate(Goals::sptr(Goals::ExecuteHeroChain(path, obj))); + float priority = priorityEvaluator->evaluate(Goals::sptr(Goals::ExecuteHeroChain(path, obj)), 5); if (ai->settings->isUseFuzzy() && priority < MIN_PRIORITY) continue; diff --git a/AI/Nullkiller/Engine/Nullkiller.cpp b/AI/Nullkiller/Engine/Nullkiller.cpp index b6aaab7fc..9984dbf51 100644 --- a/AI/Nullkiller/Engine/Nullkiller.cpp +++ b/AI/Nullkiller/Engine/Nullkiller.cpp @@ -180,7 +180,7 @@ Goals::TTaskVec Nullkiller::buildPlan(TGoalVec & tasks, int priorityTier) const for(size_t i = r.begin(); i != r.end(); i++) { auto task = tasks[i]; - if (task->asTask()->priority <= 0 || priorityTier != 3) + if (task->asTask()->priority <= 0 || priorityTier != 0) task->asTask()->priority = evaluator->evaluate(task, priorityTier); } }); @@ -385,7 +385,7 @@ void Nullkiller::makeTurn() if(bestTask->priority > 0) { - logAi->info("Performing task %s with prio: %d", bestTask->toString(), bestTask->priority); + logAi->info("Pass %d: Performing task %s with prio: %d", bestTask->toString(), bestTask->priority); if(!executeTask(bestTask)) return;