This commit is contained in:
Anuken
2022-07-07 16:01:13 -04:00
parent 64a30adb9b
commit 6f6bf0cf77

View File

@@ -11,7 +11,7 @@ import mindustry.world.meta.*;
import static mindustry.Vars.*; import static mindustry.Vars.*;
/** A turret that fires a continuous beam with a delay between shots. Liquid coolant is required. Yes, this class name is awful. NEEDS RENAME */ /** A turret that fires a continuous beam with a delay between shots. Liquid coolant is required. Yes, this class name is awful. */
public class LaserTurret extends PowerTurret{ public class LaserTurret extends PowerTurret{
public float firingMoveFract = 0.25f; public float firingMoveFract = 0.25f;
public float shootDuration = 100f; public float shootDuration = 100f;
@@ -50,7 +50,7 @@ public class LaserTurret extends PowerTurret{
@Override @Override
public boolean shouldConsume(){ public boolean shouldConsume(){
//still consumes power when bullet is around //still consumes power when bullet is around
return bullets.any() || isActive(); return bullets.any() || isActive() || isShooting();
} }
@Override @Override