Core fill items rule

This commit is contained in:
Anuken
2025-05-07 15:47:57 -04:00
parent 0d1bc2ada1
commit f0257790b8
5 changed files with 15 additions and 7 deletions

View File

@@ -1429,7 +1429,7 @@ public class ControlPathfinder implements Runnable{
private static boolean nearPassable(int initialCost, int team, PathCost cost, int pos){
int amount = cost.getCost(team, pathfinder.tiles[pos]);
return amount != impassable && amount < Math.max(50, initialCost + 1);
return amount != impassable && amount < Math.min(Math.max(50, initialCost + 1), solidCap);
}
private static boolean solid(int team, PathCost type, int x, int y){