From 72b43053cd974016608f48d42a4331ac4a08b3a6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 10 Mar 2022 10:33:45 -0500 Subject: [PATCH] Fixed fog radius on units --- core/src/mindustry/entities/pattern/ShootMulti.java | 5 ++++- core/src/mindustry/type/UnitType.java | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/pattern/ShootMulti.java b/core/src/mindustry/entities/pattern/ShootMulti.java index 2d67874939..0d1c3ebefa 100644 --- a/core/src/mindustry/entities/pattern/ShootMulti.java +++ b/core/src/mindustry/entities/pattern/ShootMulti.java @@ -29,7 +29,10 @@ public class ShootMulti extends ShootPattern{ source.shoot(totalShots, (x, y, rotation, delay, move) -> { for(var pattern : dest){ pattern.shoot(totalShots, (x2, y2, rot2, delay2, mover) -> { - handler.shoot(x + x2, y + y2, rotation + rot2, delay + delay2, mover); + handler.shoot(x + x2, y + y2, rotation + rot2, delay + delay2, b -> { + move.move(b); + mover.move(b); + }); }); } }); diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index 05d499f919..2616265e22 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -473,7 +473,8 @@ public class UnitType extends UnlockableContent{ } if(fogRadius < 0){ - fogRadius = Math.max(11f * 2.3f * 3f, hitSize * 2f) / 8f; + //TODO depend on range? + fogRadius = Math.max(58f * 3f, hitSize * 2f) / 8f; } if(weapons.isEmpty()){