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:
committed by
GitHub
parent
cd88400154
commit
43e857e810
@@ -420,7 +420,7 @@ public class Turret extends ReloadTurret{
|
|||||||
Time.run(burstSpacing * i, () -> {
|
Time.run(burstSpacing * i, () -> {
|
||||||
if(dead || !hasAmmo()) return;
|
if(dead || !hasAmmo()) return;
|
||||||
tr.trns(rotation, shootLength, Mathf.range(xRand));
|
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();
|
effects();
|
||||||
useAmmo();
|
useAmmo();
|
||||||
recoil = recoilAmount;
|
recoil = recoilAmount;
|
||||||
|
|||||||
Reference in New Issue
Block a user