Further nerfed AI

This commit is contained in:
Anuken
2018-08-07 19:01:23 -04:00
parent 049dd89470
commit 879fb8194f
3 changed files with 12 additions and 8 deletions

View File

@@ -90,7 +90,7 @@ public class Vars{
//whether turrets have infinite ammo (only with debug) //whether turrets have infinite ammo (only with debug)
public static boolean infiniteAmmo = true; public static boolean infiniteAmmo = true;
//whether to show paths of enemies //whether to show paths of enemies
public static boolean showPaths = true; public static boolean showPaths = false;
//if false, player is always hidden //if false, player is always hidden
public static boolean showPlayer = true; public static boolean showPlayer = true;
//whether to hide ui, only on debug //whether to hide ui, only on debug

View File

@@ -150,9 +150,10 @@ public class FortressGenerator{
for(int y = 0; y < base.height(); y++){ for(int y = 0; y < base.height(); y++){
Tile tile = gen.tiles[enemyX - base.width()/2 + x][enemyY - base.height()/2 + y]; Tile tile = gen.tiles[enemyX - base.width()/2 + x][enemyY - base.height()/2 + y];
StructBlock block = base.layout[x][y]; StructBlock block = base.layout[x][y];
Block result = fixBlock(block.block);
tile.setElevation(elev); tile.setElevation(elev);
tile.setRotation(block.rotation); tile.setRotation(block.rotation);
tile.setBlock(block.block, team); tile.setBlock(result, team);
} }
} }
@@ -177,11 +178,7 @@ public class FortressGenerator{
StructBlock block = struct.layout[cx][cy]; StructBlock block = struct.layout[cx][cy];
Tile tile = world.tile(wx, wy); Tile tile = world.tile(wx, wy);
Block result = block.block; Block result = fixBlock(block.block);
if(result == UnitBlocks.resupplyPoint) result = DefenseBlocks.tungstenWall;
if(result == UnitBlocks.monsoonPad) result = DefenseBlocks.tungstenWallLarge;
if(result == UnitBlocks.fabricatorPad) result = DefenseBlocks.tungstenWallLarge;
//resupply points should not be placed anymore, they confuse units //resupply points should not be placed anymore, they confuse units
if(result != Blocks.air && tile.block().alwaysReplace){ if(result != Blocks.air && tile.block().alwaysReplace){
@@ -199,6 +196,13 @@ public class FortressGenerator{
} }
} }
Block fixBlock(Block result){
if(result == UnitBlocks.resupplyPoint) result = DefenseBlocks.tungstenWall;
if(result == UnitBlocks.monsoonPad) result = DefenseBlocks.tungstenWallLarge;
if(result == UnitBlocks.fabricatorPad) result = DefenseBlocks.tungstenWallLarge;
return result;
}
void fill(Tile tile){ void fill(Tile tile){
Block block = tile.block(); Block block = tile.block();

View File

@@ -39,7 +39,7 @@ import java.io.IOException;
public class UnitPad extends Block{ public class UnitPad extends Block{
protected float gracePeriodMultiplier = 16f; protected float gracePeriodMultiplier = 16f;
protected float speedupTime = 60f * 60f * 16; protected float speedupTime = 60f * 60f * 19;
protected float maxSpeedup = 7f; protected float maxSpeedup = 7f;
protected UnitType type; protected UnitType type;