diff --git a/common/src/sys/agent.rs b/common/src/sys/agent.rs index e31aeeddbb..c41dde878f 100644 --- a/common/src/sys/agent.rs +++ b/common/src/sys/agent.rs @@ -69,14 +69,14 @@ impl<'a> System<'a> for Sys { let dist = Vec2::::from(target_pos.0 - pos.0).magnitude(); if target_stats.is_dead { choose_new = true; - } else if dist < 3.0 { + } else if dist < 1.5 { // Get more distance controller.move_dir = Vec2::::from(target_pos.0 - pos.0).normalized() * -0.96; } else if dist < 4.0 { // Fight and slowly move closer controller.move_dir = - Vec2::::from(target_pos.0 - pos.0).normalized() * 0.01; + Vec2::::from(target_pos.0 - pos.0).normalized() * 0.1; if rand::random::() < 0.1 { controller.attack = true;