From 295969517c27291298003911fdb8951cadd5dc06 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Sun, 25 Aug 2019 11:36:24 +0200 Subject: [PATCH] Improve combat range --- common/src/sys/combat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/sys/combat.rs b/common/src/sys/combat.rs index 05c57c9917..a3c4282663 100644 --- a/common/src/sys/combat.rs +++ b/common/src/sys/combat.rs @@ -67,7 +67,7 @@ impl<'a> System<'a> for Sys { // Check if it is a hit if entity != b && !stat_b.is_dead - && pos.0.distance_squared(pos_b.0) < 40.0 + && pos.0.distance_squared(pos_b.0) < 20.0 // TODO: Use size instead of 1.0 && ori2.angle_between(pos_b2 - pos2) < (1.0 / pos2.distance(pos_b2)).atan() {