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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));