Turret reload 'fix' moved to PowerTurret
This commit is contained in:
@@ -47,6 +47,13 @@ public class PowerTurret extends Turret{
|
|||||||
return shootType;
|
return shootType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean shouldConsume(){
|
||||||
|
//when the block is first placed, it shouldn't consume power/liquid just to "cool down" from the initial reload
|
||||||
|
//thus, it should only consume once it has actually shot at something
|
||||||
|
return isShooting() || (reloadCounter < reload && totalShots > 0);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasAmmo(){
|
public boolean hasAmmo(){
|
||||||
//you can always rotate, but never shoot if there's no power
|
//you can always rotate, but never shoot if there's no power
|
||||||
|
|||||||
@@ -351,9 +351,7 @@ public class Turret extends ReloadTurret{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldConsume(){
|
public boolean shouldConsume(){
|
||||||
//when the block is first placed, it shouldn't consume power/liquid just to "cool down" from the initial reload
|
return isShooting() || reloadCounter < reload;
|
||||||
//thus, it should only consume once it has actually shot at something
|
|
||||||
return isShooting() || (reloadCounter < reload && totalShots > 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user