recoil = recoilAmount twice (#6312)

This commit is contained in:
Matthew Peng
2021-11-07 19:33:11 -08:00
committed by GitHub
parent fff7283568
commit 1dd0f67daf

View File

@@ -419,9 +419,6 @@ public class Turret extends ReloadTurret{
int ii = i;
Time.run(burstSpacing * i, () -> {
if(dead || !hasAmmo()) return;
recoil = recoilAmount;
tr.trns(rotation, shootLength, Mathf.range(xRand));
bullet(type, rotation + Mathf.range(inaccuracy + type.inaccuracy) + (ii - (int)(shots / 2f)) * spread);
effects();
@@ -508,4 +505,4 @@ public class Turret extends ReloadTurret{
return 1;
}
}
}
}