aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/costs.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-05 08:29:53 +0330
committermat <git@matdoes.dev>2026-01-05 08:29:53 +0330
commitdb9a9e53ca18911fb2045b7d6af4ed6df388eaaa (patch)
tree730e6dda7e9ed41a0595f8a187b3561eb6e2caa1 /azalea/src/pathfinder/costs.rs
parentc50a8662afeadfce50f64600efa497b07e9bce86 (diff)
downloadazalea-drasl-db9a9e53ca18911fb2045b7d6af4ed6df388eaaa.tar.xz
fix panic in a_star and some prep for pathfinder swimming
Diffstat (limited to 'azalea/src/pathfinder/costs.rs')
-rw-r--r--azalea/src/pathfinder/costs.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea/src/pathfinder/costs.rs b/azalea/src/pathfinder/costs.rs
index f9b67e5f..631e2afc 100644
--- a/azalea/src/pathfinder/costs.rs
+++ b/azalea/src/pathfinder/costs.rs
@@ -10,6 +10,8 @@ pub const SPRINT_MULTIPLIER: f32 = SPRINT_ONE_BLOCK_COST / WALK_ONE_BLOCK_COST;
pub const JUMP_PENALTY: f32 = 2.;
pub const CENTER_AFTER_FALL_COST: f32 = WALK_ONE_BLOCK_COST - WALK_OFF_BLOCK_COST; // 0.927
+pub const SWIM_ONE_BLOCK_COST: f32 = 20. / 1.960;
+
// explanation here:
// https://github.com/cabaletta/baritone/blob/f147519a5c291015d4f18c94558a3f1bdcdb9588/src/api/java/baritone/api/Settings.java#L405
// it's basically just the heuristic multiplier