From 8c3ecfdb064cf6aed09478103b87a20826bbb02a Mon Sep 17 00:00:00 2001 From: Matthew Peng <54301439+MEEPofFaith@users.noreply.github.com> Date: Tue, 12 Oct 2021 14:36:59 -0700 Subject: [PATCH] Make Burst + Spread Work (#5589) * Make Burst + Spread Work * This is why you use an IDE * h --- core/src/mindustry/world/blocks/defense/turrets/Turret.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/defense/turrets/Turret.java b/core/src/mindustry/world/blocks/defense/turrets/Turret.java index fc64c37c7d..1e971d884c 100644 --- a/core/src/mindustry/world/blocks/defense/turrets/Turret.java +++ b/core/src/mindustry/world/blocks/defense/turrets/Turret.java @@ -418,7 +418,7 @@ public class Turret extends ReloadTurret{ tr.trns(rotation, shootLength); recoil = recoilAmount; heat = 1f; - bullet(type, rotation + Mathf.range(inaccuracy)); + bullet(type, rotation + Mathf.range(inaccuracy + type.inaccuracy)); effects(); charging = false; }); @@ -448,7 +448,7 @@ public class Turret extends ReloadTurret{ float i = (shotCounter % shots) - (shots-1)/2f; tr.trns(rotation - 90, spread * i + Mathf.range(xRand), shootLength); - bullet(type, rotation + Mathf.range(inaccuracy)); + bullet(type, rotation + Mathf.range(inaccuracy + type.inaccuracy)); }else{ tr.trns(rotation, shootLength, Mathf.range(xRand));