This commit is contained in:
Anuken
2025-05-06 10:28:34 -04:00
parent f3438124b3
commit 685a52eb48
6 changed files with 21 additions and 7 deletions

View File

@@ -54,6 +54,7 @@ public class ControlPathfinder implements Runnable{
costLegs = (team, tile) ->
PathTile.legSolid(tile) ? impassable : 1 +
(PathTile.nearDeep(tile) ? 8 : 0) +
(PathTile.deep(tile) ? 6000 : 0) +
(PathTile.nearLegSolid(tile) ? 3 : 0),
@@ -1425,9 +1426,7 @@ public class ControlPathfinder implements Runnable{
private static boolean nearPassable(int team, PathCost cost, int pos){
int amount = cost.getCost(team, pathfinder.tiles[pos]);
//for standard units: never consider deep water (cost = 6000) passable
//for leg units: consider it passable
return amount != impassable && amount < (cost == costLegs ? solidCap : 50);
return amount != impassable && amount < 50;
}
private static boolean solid(int team, PathCost type, int x, int y){