@@ -111,7 +111,7 @@ public class Turret extends ReloadTurret{
|
||||
super.setStats();
|
||||
|
||||
stats.add(Stat.inaccuracy, (int)inaccuracy, StatUnit.degrees);
|
||||
stats.add(Stat.reload, 60f / reloadTime * (alternate ? 1 : shots), StatUnit.none);
|
||||
stats.add(Stat.reload, 60f / (reloadTime + 1) * (alternate ? 1 : shots), StatUnit.none);
|
||||
stats.add(Stat.targetsAir, targetAir);
|
||||
stats.add(Stat.targetsGround, targetGround);
|
||||
if(ammoPerShot != 1) stats.add(Stat.ammoUse, ammoPerShot, StatUnit.perShot);
|
||||
|
||||
@@ -224,7 +224,7 @@ public class PowerGraph{
|
||||
lastPowerNeeded = powerNeeded;
|
||||
lastPowerProduced = powerProduced;
|
||||
|
||||
lastScaledPowerIn = powerProduced / Time.delta;
|
||||
lastScaledPowerIn = (powerProduced + energyDelta) / Time.delta;
|
||||
lastScaledPowerOut = powerNeeded / Time.delta;
|
||||
lastCapacity = getTotalBatteryCapacity();
|
||||
lastPowerStored = getBatteryStored();
|
||||
|
||||
@@ -226,7 +226,7 @@ public class PowerNode extends PowerBlock{
|
||||
for(Point2 point : (Point2[])req.config){
|
||||
otherReq = null;
|
||||
list.each(other -> {
|
||||
if((other.x == req.x + point.x && other.y == req.y + point.y) && other != req){
|
||||
if((other.x == req.x + point.x && other.y == req.y + point.y) && other != req && other.block != null && other.block.hasPower){
|
||||
otherReq = other;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user