aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves/basic.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-03 01:13:08 -0500
committermat <git@matdoes.dev>2023-10-03 01:13:08 -0500
commite9c5231336b95c0d2e93c96279b8cac036b45527 (patch)
treef7aee0562432ce8fab4bd03da3b023cc44d20a22 /azalea/src/pathfinder/moves/basic.rs
parente847f46c0b1eb27649528fa3d06a3e12b48cc734 (diff)
downloadazalea-drasl-e9c5231336b95c0d2e93c96279b8cac036b45527.tar.xz
tweak pathfinder costs
Diffstat (limited to 'azalea/src/pathfinder/moves/basic.rs')
-rw-r--r--azalea/src/pathfinder/moves/basic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs
index b7bb1116..26a77f4e 100644
--- a/azalea/src/pathfinder/moves/basic.rs
+++ b/azalea/src/pathfinder/moves/basic.rs
@@ -80,7 +80,7 @@ fn ascend_move(ctx: &PathfinderCtx, pos: BlockPos) -> Vec<Edge> {
continue;
}
- let cost = SPRINT_ONE_BLOCK_COST + *JUMP_ONE_BLOCK_COST;
+ let cost = SPRINT_ONE_BLOCK_COST + JUMP_PENALTY + *JUMP_ONE_BLOCK_COST;
edges.push(Edge {
movement: astar::Movement {