Unit artillery fix
This commit is contained in:
@@ -13,7 +13,7 @@ public class ArtilleryBulletType extends BasicBulletType{
|
||||
collidesTiles = false;
|
||||
collides = false;
|
||||
collidesAir = false;
|
||||
scaleVelocity = true;
|
||||
scaleLife = true;
|
||||
hitShake = 1f;
|
||||
hitSound = Sounds.explosion;
|
||||
hitEffect = Fx.flakExplosion;
|
||||
|
||||
@@ -111,7 +111,7 @@ public class BulletType extends Content implements Cloneable{
|
||||
/** Whether velocity is inherited from the shooter. */
|
||||
public boolean keepVelocity = true;
|
||||
/** Whether to scale lifetime (not actually velocity!) to disappear at the target position. Used for artillery. */
|
||||
public boolean scaleVelocity;
|
||||
public boolean scaleLife;
|
||||
/** Whether this bullet can be hit by point defense. */
|
||||
public boolean hittable = true;
|
||||
/** Whether this bullet can be reflected. */
|
||||
|
||||
@@ -13,7 +13,7 @@ public class PointBulletType extends BulletType{
|
||||
public float trailSpacing = 10f;
|
||||
|
||||
public PointBulletType(){
|
||||
scaleVelocity = true;
|
||||
scaleLife = true;
|
||||
lifetime = 100f;
|
||||
collides = false;
|
||||
keepVelocity = false;
|
||||
|
||||
Reference in New Issue
Block a user