mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-19 20:27:44 +07:00
Make Burst + Spread Work (#5589)
* Make Burst + Spread Work * This is why you use an IDE * h
This commit is contained in:
@ -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));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user