Misc cleanup
This commit is contained in:
@@ -15,7 +15,7 @@ import static mindustry.Vars.*;
|
||||
|
||||
public class LogicAI extends AIController{
|
||||
/** Minimum delay between item transfers. */
|
||||
public static final float transferDelay = 60f * 2f;
|
||||
public static final float transferDelay = 60f * 1.5f;
|
||||
/** Time after which the unit resets its controlled and reverts to a normal unit. */
|
||||
public static final float logicControlTimeout = 10f * 60f;
|
||||
|
||||
|
||||
@@ -448,10 +448,6 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
return !selectRequests.isEmpty();
|
||||
}
|
||||
|
||||
public OverlayFragment getFrag(){
|
||||
return frag;
|
||||
}
|
||||
|
||||
public void update(){
|
||||
player.typing = ui.chatfrag.shown();
|
||||
|
||||
@@ -466,8 +462,8 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
wasShooting = player.shooting;
|
||||
|
||||
//only reset the controlled type and control a unit after the timer runs out
|
||||
//essentially, this means the client waits for 1 second after controlling something before trying to control something else automatically
|
||||
if(!player.dead() && (recentRespawnTimer -= Time.delta / 60f) <= 0f && player.justSwitchFrom != player.unit()){
|
||||
//essentially, this means the client waits for ~1 second after controlling something before trying to control something else automatically
|
||||
if(!player.dead() && (recentRespawnTimer -= Time.delta / 70f) <= 0f && player.justSwitchFrom != player.unit()){
|
||||
controlledType = player.unit().type;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class PowerGraph{
|
||||
}
|
||||
|
||||
public float getPowerBalance(){
|
||||
return powerBalance.mean();
|
||||
return powerBalance.rawMean();
|
||||
}
|
||||
|
||||
public float getLastPowerNeeded(){
|
||||
|
||||
Reference in New Issue
Block a user