Lots of balancing/tweaks

This commit is contained in:
Anuken
2022-05-03 14:42:11 -04:00
parent 459428ef25
commit 210481703f
10 changed files with 67 additions and 31 deletions
@@ -56,6 +56,8 @@ public class Turret extends ReloadTurret{
public int maxAmmo = 30;
public int ammoPerShot = 1;
/** If true, ammo is only consumed once per shot regardless of bullet count. */
public boolean consumeAmmoOnce = false;
public float heatRequirement = -1f;
public float maxHeatEfficiency = 3f;
@@ -488,12 +490,16 @@ public class Turret extends ReloadTurret{
}
totalShots ++;
});
if(consumeAmmoOnce){
useAmmo();
}
}
protected void bullet(BulletType type, float xOffset, float yOffset, float angleOffset, Mover mover){
queuedBullets --;
if(dead || !hasAmmo()) return;
if(dead || (!consumeAmmoOnce && !hasAmmo())) return;
float
bulletX = x + Angles.trnsx(rotation - 90, shootX + xOffset, shootY + yOffset),
@@ -522,7 +528,9 @@ public class Turret extends ReloadTurret{
recoil = recoilAmount;
heat = 1f;
useAmmo();
if(!consumeAmmoOnce){
useAmmo();
}
}
protected void handleBullet(@Nullable Bullet bullet, float offsetX, float offsetY, float angleOffset){