More disperse ammo

This commit is contained in:
Anuken
2025-01-11 00:32:58 -05:00
parent c5aefaae1f
commit 5fc95b36a3
3 changed files with 58 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ public class Turret extends ReloadTurret{
public void limitRange(BulletType bullet, float margin){
float realRange = bullet.rangeChange + range;
//doesn't handle drag
bullet.lifetime = (realRange + margin) / bullet.speed;
bullet.lifetime = (realRange + margin + bullet.extraRangeMargin) / bullet.speed;
}
public static abstract class AmmoEntry{