More pathfinder tweaks

This commit is contained in:
Anuken 2024-04-21 10:19:39 -04:00
parent 022b3951d2
commit a7a9a99780

View File

@ -1367,7 +1367,9 @@ public class ControlPathfinder implements Runnable{
private static boolean nearPassable(int team, PathCost cost, int pos){
int amount = cost.getCost(team, pathfinder.tiles[pos]);
return amount != impassable && amount < 50;
//for standard units: never consider deep water (cost = 6000) passable
//for leg units: consider it passable
return amount != impassable && amount < (cost == costLegs ? solidCap : 50);
}
private static boolean solid(int team, PathCost type, int x, int y){