Make Burst + Spread Work (#5589)

* Make Burst + Spread Work

* This is why you use an IDE

* h
This commit is contained in:
Matthew Peng
2021-10-12 14:36:59 -07:00
committed by GitHub
parent fbca85fe0a
commit 8c3ecfdb06

View File

@ -418,7 +418,7 @@ public class Turret extends ReloadTurret{
tr.trns(rotation, shootLength); tr.trns(rotation, shootLength);
recoil = recoilAmount; recoil = recoilAmount;
heat = 1f; heat = 1f;
bullet(type, rotation + Mathf.range(inaccuracy)); bullet(type, rotation + Mathf.range(inaccuracy + type.inaccuracy));
effects(); effects();
charging = false; charging = false;
}); });
@ -448,7 +448,7 @@ public class Turret extends ReloadTurret{
float i = (shotCounter % shots) - (shots-1)/2f; float i = (shotCounter % shots) - (shots-1)/2f;
tr.trns(rotation - 90, spread * i + Mathf.range(xRand), shootLength); 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{ }else{
tr.trns(rotation, shootLength, Mathf.range(xRand)); tr.trns(rotation, shootLength, Mathf.range(xRand));