@@ -590,6 +590,10 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
logicCutsceneZoom = -1f;
|
logicCutsceneZoom = -1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!commandMode){
|
||||||
|
commandRect = false;
|
||||||
|
}
|
||||||
|
|
||||||
playerPlanTree.clear();
|
playerPlanTree.clear();
|
||||||
player.unit().plans.each(playerPlanTree::insert);
|
player.unit().plans.each(playerPlanTree::insert);
|
||||||
|
|
||||||
|
|||||||
@@ -183,12 +183,12 @@ public class Turret extends ReloadTurret{
|
|||||||
|
|
||||||
public float estimateDps(){
|
public float estimateDps(){
|
||||||
if(!hasAmmo()) return 0f;
|
if(!hasAmmo()) return 0f;
|
||||||
return shoot.shots / reload * 60f * peekAmmo().estimateDPS() * potentialEfficiency * timeScale;
|
return shoot.shots / reload * 60f * (peekAmmo() == null ? 0f : peekAmmo().estimateDPS()) * potentialEfficiency * timeScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float range(){
|
public float range(){
|
||||||
if(hasAmmo()){
|
if(peekAmmo() != null){
|
||||||
return range + peekAmmo().rangeChange;
|
return range + peekAmmo().rangeChange;
|
||||||
}
|
}
|
||||||
return range;
|
return range;
|
||||||
|
|||||||
@@ -281,6 +281,8 @@ public class BeamDrill extends Block{
|
|||||||
Draw.rect(block.region, x, y);
|
Draw.rect(block.region, x, y);
|
||||||
Draw.rect(topRegion, x, y, rotdeg());
|
Draw.rect(topRegion, x, y, rotdeg());
|
||||||
|
|
||||||
|
if(isPayload()) return;
|
||||||
|
|
||||||
var dir = Geometry.d4(rotation);
|
var dir = Geometry.d4(rotation);
|
||||||
int ddx = Geometry.d4x(rotation + 1), ddy = Geometry.d4y(rotation + 1);
|
int ddx = Geometry.d4x(rotation + 1), ddy = Geometry.d4y(rotation + 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user