Point defense blocks

This commit is contained in:
Anuken
2020-06-03 16:22:07 -04:00
parent 3d98de34eb
commit 6fff4ad8a1
20 changed files with 1821 additions and 1759 deletions

View File

@@ -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

View File

@@ -20,6 +20,7 @@ public class HealBulletType extends BulletType{
hitEffect = Fx.hitLaser;
despawnEffect = Fx.hitLaser;
collidesTeam = true;
hittable = false;
}
public HealBulletType(){

View File

@@ -28,6 +28,7 @@ public class LaserBulletType extends BulletType{
hitSize = 4;
lifetime = 16f;
pierce = true;
hittable = false;
}
public LaserBulletType(){

View File

@@ -17,6 +17,7 @@ public class LightningBulletType extends BulletType{
despawnEffect = Fx.none;
hitEffect = Fx.hitLancer;
keepVelocity = false;
hittable = false;
}
@Override