diff options
| author | mat <git@matdoes.dev> | 2023-10-03 01:13:08 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-03 01:13:08 -0500 |
| commit | e9c5231336b95c0d2e93c96279b8cac036b45527 (patch) | |
| tree | f7aee0562432ce8fab4bd03da3b023cc44d20a22 /azalea/src/pathfinder/moves/basic.rs | |
| parent | e847f46c0b1eb27649528fa3d06a3e12b48cc734 (diff) | |
| download | azalea-drasl-e9c5231336b95c0d2e93c96279b8cac036b45527.tar.xz | |
tweak pathfinder costs
Diffstat (limited to 'azalea/src/pathfinder/moves/basic.rs')
| -rw-r--r-- | azalea/src/pathfinder/moves/basic.rs | 2 |
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 { |
