mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-13 08:15:04 +07:00
Make Burst + Spread Work (#5589)
* Make Burst + Spread Work * This is why you use an IDE * h
This commit is contained in:
parent
fbca85fe0a
commit
8c3ecfdb06
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user