Merge pull request #3174 from genNAowl/alternate-recalculation
Change "Alternate" calculation in Turret.java
This commit is contained in:
@@ -364,7 +364,7 @@ public abstract class Turret extends ReloadTurret{
|
|||||||
//otherwise, use the normal shot pattern(s)
|
//otherwise, use the normal shot pattern(s)
|
||||||
|
|
||||||
if(alternate){
|
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);
|
tr.trns(rotation - 90, spread * i + Mathf.range(xRand), size * tilesize / 2f);
|
||||||
bullet(type, rotation + Mathf.range(inaccuracy));
|
bullet(type, rotation + Mathf.range(inaccuracy));
|
||||||
|
|||||||
Reference in New Issue
Block a user