WIP RTS AI functionality

This commit is contained in:
Anuken
2022-02-17 23:00:51 -05:00
parent aaba579314
commit 520b60770c
6 changed files with 151 additions and 4 deletions

View File

@@ -198,6 +198,11 @@ public class Turret extends ReloadTurret{
public float heatReq;
public float[] sideHeat = new float[4];
public float estimateDps(){
if(!hasAmmo()) return 0f;
return shots / reloadTime * 60f * peekAmmo().estimateDPS() * efficiency() * timeScale;
}
@Override
public float range(){
if(hasAmmo()){