Point defense blocks
This commit is contained in:
@@ -63,6 +63,8 @@ public abstract class BulletType extends Content{
|
||||
public boolean keepVelocity = true;
|
||||
/** Whether to scale velocity to disappear at the target position. Used for artillery. */
|
||||
public boolean scaleVelocity;
|
||||
/** Whether this bullet can be hit by point defense. */
|
||||
public boolean hittable = true;
|
||||
|
||||
//additional effects
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ public class HealBulletType extends BulletType{
|
||||
hitEffect = Fx.hitLaser;
|
||||
despawnEffect = Fx.hitLaser;
|
||||
collidesTeam = true;
|
||||
hittable = false;
|
||||
}
|
||||
|
||||
public HealBulletType(){
|
||||
|
||||
@@ -28,6 +28,7 @@ public class LaserBulletType extends BulletType{
|
||||
hitSize = 4;
|
||||
lifetime = 16f;
|
||||
pierce = true;
|
||||
hittable = false;
|
||||
}
|
||||
|
||||
public LaserBulletType(){
|
||||
|
||||
@@ -17,6 +17,7 @@ public class LightningBulletType extends BulletType{
|
||||
despawnEffect = Fx.none;
|
||||
hitEffect = Fx.hitLancer;
|
||||
keepVelocity = false;
|
||||
hittable = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user