Deprecated Turret powerUse
This commit is contained in:
@@ -22,12 +22,6 @@ public class LaserTurret extends PowerTurret{
|
||||
coolantMultiplier = 1f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
consumes.power(powerUse);
|
||||
super.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStats(){
|
||||
super.setStats();
|
||||
|
||||
@@ -7,7 +7,9 @@ import mindustry.world.meta.*;
|
||||
|
||||
public class PowerTurret extends Turret{
|
||||
public BulletType shootType;
|
||||
public float powerUse = 1f;
|
||||
/** @deprecated just consume power directly instead. */
|
||||
@Deprecated
|
||||
public float powerUse = -1f;
|
||||
|
||||
public PowerTurret(String name){
|
||||
super(name);
|
||||
@@ -22,7 +24,9 @@ public class PowerTurret extends Turret{
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
consumes.power(powerUse);
|
||||
if(powerUse > 0){
|
||||
consumes.power(powerUse);
|
||||
}
|
||||
super.init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user