Fix ammo of one item transforming into another. (#6483)

* Fix ammo transmutation

* Small fixes

* small fix 2

* a

* commit spam aeugh
This commit is contained in:
Matthew (or Maya) Peng
2022-01-11 06:29:25 -08:00
committed by GitHub
parent cd88400154
commit 43e857e810

View File

@@ -420,7 +420,7 @@ public class Turret extends ReloadTurret{
Time.run(burstSpacing * i, () -> {
if(dead || !hasAmmo()) return;
tr.trns(rotation, shootLength, Mathf.range(xRand));
bullet(type, rotation + Mathf.range(inaccuracy + type.inaccuracy) + (ii - (int)(shots / 2f)) * spread);
bullet(peekAmmo(), rotation + Mathf.range(inaccuracy + peekAmmo().inaccuracy) + (ii - (int)(shots / 2f)) * spread);
effects();
useAmmo();
recoil = recoilAmount;