From a060ffff93f84df2c419c6180d4ee916ace36ad9 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 3 Oct 2023 23:07:03 -0500 Subject: tweak pathfinder costs a bit --- azalea/src/pathfinder/moves/basic.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'azalea/src/pathfinder/moves/basic.rs') diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index 412f463e..dfb90bd0 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -172,7 +172,9 @@ fn descend_move(ctx: &PathfinderCtx, pos: BlockPos) -> Vec { continue; } - let cost = SPRINT_ONE_BLOCK_COST + FALL_ONE_BLOCK_COST * fall_distance as f32; + let cost = SPRINT_ONE_BLOCK_COST + + WALK_OFF_BLOCK_COST + + FALL_ONE_BLOCK_COST * fall_distance as f32; edges.push(Edge { movement: astar::Movement { -- cgit v1.2.3