Merge pull request #3174 from genNAowl/alternate-recalculation

Change "Alternate" calculation in Turret.java
This commit is contained in:
Anuken 2020-10-30 09:30:59 -04:00 committed by GitHub
commit c8e5994b2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -364,7 +364,7 @@ public abstract class Turret extends ReloadTurret{
//otherwise, use the normal shot pattern(s)
if(alternate){
float i = (shotCounter % shots) - shots/2f + (((shots+1)%2) / 2f);
float i = (shotCounter % shots) - (shots-1)/2f;
tr.trns(rotation - 90, spread * i + Mathf.range(xRand), size * tilesize / 2f);
bullet(type, rotation + Mathf.range(inaccuracy));