|
@@ -1345,7 +1345,7 @@ float PriorityEvaluator::evaluate(Goals::TSubgoal task, int priorityTier)
|
|
else
|
|
else
|
|
{
|
|
{
|
|
float score = 0;
|
|
float score = 0;
|
|
- float maxWillingToLose = ai->cb->getTownsInfo().empty() ? 1 : 0.25;
|
|
|
|
|
|
+ float maxWillingToLose = ai->cb->getTownsInfo().empty() || (evaluationContext.isDefend && evaluationContext.threatTurns == 0) ? 1 : 0.25;
|
|
|
|
|
|
bool arriveNextWeek = false;
|
|
bool arriveNextWeek = false;
|
|
if (ai->cb->getDate(Date::DAY_OF_WEEK) + evaluationContext.turn > 7)
|
|
if (ai->cb->getDate(Date::DAY_OF_WEEK) + evaluationContext.turn > 7)
|