From 25d3ec089585c32bd9231eef71b41481f42442c0 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 1 Oct 2024 13:59:38 -0400 Subject: [PATCH] Allow naval units to move towards targets on land --- core/src/mindustry/ai/ControlPathfinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ai/ControlPathfinder.java b/core/src/mindustry/ai/ControlPathfinder.java index a4586e0873..895ec7ee69 100644 --- a/core/src/mindustry/ai/ControlPathfinder.java +++ b/core/src/mindustry/ai/ControlPathfinder.java @@ -58,8 +58,8 @@ public class ControlPathfinder implements Runnable{ costNaval = (team, tile) -> //impassable same-team neutral block, or non-liquid - (PathTile.solid(tile) && ((PathTile.team(tile) == team && !PathTile.teamPassable(tile)) || PathTile.team(tile) == 0)) || !PathTile.liquid(tile) ? impassable : - 1 + + (PathTile.solid(tile) && ((PathTile.team(tile) == team && !PathTile.teamPassable(tile)) || PathTile.team(tile) == 0)) ? impassable : + (!PathTile.liquid(tile) ? 6000 : 1) + //impassable synthetic enemy block ((PathTile.team(tile) != team && PathTile.team(tile) != 0) && PathTile.solid(tile) ? wallImpassableCap : 0) + (PathTile.nearGround(tile) || PathTile.nearSolid(tile) ? 6 : 0);