Progress 3.

This commit is contained in:
JezuzLizard
2023-07-11 21:00:28 -07:00
parent 81094096cb
commit 280ec4c318
6 changed files with 315 additions and 33 deletions

View File

@@ -316,10 +316,17 @@ ClearPriorityObjective()
/*
Checks whether the path generated by the ASTAR path finding is inaccessible
*/
GetPathIsInaccessible( to )
GetPathIsInaccessible( to, best_effort )
{
path = generatePath( self.origin, to, self.team, level.bot_allowed_negotiation_links );
return !isDefined( path ) || path.size <= 0;
if ( isDefined( best_effort ) )
{
path = generatePath( self.origin, to, self.team, level.bot_allowed_negotiation_links, best_effort );
}
else
{
path = generatePath( self.origin, to, self.team, level.bot_allowed_negotiation_links );
}
return !isDefined( path ) || ( path.size <= 0) ;
}
/*