Increase probability of random rerouting

This commit is contained in:
Dmitry Kashitsyn 2024-04-09 15:06:37 +05:00
parent c8f39e3beb
commit 0d87154e6c
No known key found for this signature in database
GPG Key ID: 6C747B56FC5F1ABA

View File

@ -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::<f32>() < 0.001 {
} else if thread_rng().gen::<f32>() < 0.01 {
self.route = None;
None
} else {