climb is expensive

This commit is contained in:
INeedBots
2020-11-22 23:40:51 -06:00
parent 37ac438d57
commit 1e443f5826
2 changed files with 2 additions and 7 deletions

View File

@ -1668,7 +1668,7 @@ AStarSearch(start, goal, team, greedy_path)
// have certain types of nodes more expensive
if (childtype == "climb" || childtype == "prone")
penalty++;
penalty += 4;
//calc the total path we have took
newg = bestNode.g + DistanceSquared(nodeorg, childorg)*penalty;//bots on same team's path are more expensive