mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Increase probability of random rerouting
This commit is contained in:
parent
c8f39e3beb
commit
0d87154e6c
@ -404,7 +404,7 @@ impl Chaser {
|
|||||||
// our day. TODO: Come up with a better heuristic for this
|
// 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 {
|
if end_to_tgt > pos_to_tgt * 0.3 + 5.0 && complete && traversal_cfg.is_target_loaded {
|
||||||
None
|
None
|
||||||
} else if thread_rng().gen::<f32>() < 0.001 {
|
} else if thread_rng().gen::<f32>() < 0.01 {
|
||||||
self.route = None;
|
self.route = None;
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user