Turret bullet tweaks & fixes
This commit is contained in:
@@ -716,7 +716,10 @@ public class BulletType extends Content implements Cloneable{
|
||||
}
|
||||
|
||||
if(lightningType == null){
|
||||
lightningType = !collidesAir ? Bullets.damageLightningGround : Bullets.damageLightning;
|
||||
lightningType =
|
||||
!collidesAir ? Bullets.damageLightningGround :
|
||||
!collidesGround ? Bullets.damageLightningAir :
|
||||
Bullets.damageLightning;
|
||||
}
|
||||
|
||||
if(lightRadius <= -1){
|
||||
|
||||
10
core/src/mindustry/entities/bullet/EmptyBulletType.java
Normal file
10
core/src/mindustry/entities/bullet/EmptyBulletType.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package mindustry.entities.bullet;
|
||||
|
||||
public class EmptyBulletType extends BulletType{
|
||||
|
||||
public EmptyBulletType(){
|
||||
hittable = collidesGround = collidesAir = collidesTiles = false;
|
||||
speed = 0f;
|
||||
keepVelocity = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user