aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves/basic.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-03 23:07:03 -0500
committermat <git@matdoes.dev>2023-10-03 23:07:03 -0500
commita060ffff93f84df2c419c6180d4ee916ace36ad9 (patch)
tree6dc4711699cb15b69e588be9ecb101320db0c56f /azalea/src/pathfinder/moves/basic.rs
parentbffa28e7069669198906566058aaa668922c54bc (diff)
downloadazalea-drasl-a060ffff93f84df2c419c6180d4ee916ace36ad9.tar.xz
tweak pathfinder costs a bit
Diffstat (limited to 'azalea/src/pathfinder/moves/basic.rs')
-rw-r--r--azalea/src/pathfinder/moves/basic.rs4
1 files changed, 3 insertions, 1 deletions
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<Edge> {
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 {