Better breach FX

This commit is contained in:
Anuken
2021-12-27 16:59:06 -05:00
parent 4e1dec2399
commit aaaa9f408e
4 changed files with 21 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ public class ItemTurret extends Turret{
/** Makes copies of all bullets and limits their range. */
public void limitRange(){
limitRange(1f);
limitRange(2f);
}
/** Makes copies of all bullets and limits their range. */

View File

@@ -78,7 +78,7 @@ public class Turret extends ReloadTurret{
/** Maximum angle difference in degrees at which turret will still try to shoot. */
public float shootCone = 8f;
/** Length of turret shoot point. */
public float shootLength = -1;
public float shootLength = Float.NEGATIVE_INFINITY;
/** Random spread of projectile across width. This looks stupid. */
public float xRand = 0f;
/** Currently used for artillery only. */
@@ -164,7 +164,7 @@ public class Turret extends ReloadTurret{
@Override
public void init(){
if(shootLength < 0) shootLength = size * tilesize / 2f;
if(shootLength == Float.NEGATIVE_INFINITY) shootLength = size * tilesize / 2f;
if(elevation < 0) elevation = size / 2f;
super.init();