From 0d87154e6c41cea424e56e2b58b586e711326e31 Mon Sep 17 00:00:00 2001 From: Dmitry Kashitsyn Date: Tue, 9 Apr 2024 15:06:37 +0500 Subject: [PATCH] Increase probability of random rerouting --- common/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/path.rs b/common/src/path.rs index a62345b78c..615b111476 100644 --- a/common/src/path.rs +++ b/common/src/path.rs @@ -404,7 +404,7 @@ impl Chaser { // our day. TODO: Come up with a better heuristic for this if end_to_tgt > pos_to_tgt * 0.3 + 5.0 && complete && traversal_cfg.is_target_loaded { None - } else if thread_rng().gen::() < 0.001 { + } else if thread_rng().gen::() < 0.01 { self.route = None; None } else {