Source:
protected void calculateDeployment() { final int entityNum = game.getFirstDeployableEntityNum(game.getTurnForPlayer(localPlayerNumber)); if (getLogger().getLogLevel(LOGGING_CATEGORY).toInt() > LogLevel.WARNING.toInt()) { sendChat("deploying unit " + getEntity(entityNum).getChassis(), LogLevel.INFO); } if(getForcedWithdrawal() && getEntity(entityNum).isCrippled()) { getLogger().info("Declining to deploy crippled unit: " + getEntity(entityNum).getChassis() + ". Removing unit."); sendDeleteEntity(entityNum); return; } final List<Coords> startingCoords = getStartingCoordsArray(game.getEntity(entityNum)); if (0 == startingCoords.size()) { getLogger().error("No valid locations to deploy " + getEntity(entityNum).getDisplayName()); } final Coords deployCoords = getFirstValidCoords(getEntity(entityNum), startingCoords); if (null == deployCoords) { getLogger().error("getCoordsAround gave no location for " + getEntity(entityNum).getChassis() + ". Removing unit."); sendDeleteEntity(entityNum); return; } int decentFacing = -1; for (final Entity e : getEnemyEntities()) { if (e.isDeployed() && (!e.isOffBoard())) { decentFacing = deployCoords.direction(e.getPosition()); break; } } if (-1 == decentFacing) { final Coords center = new Coords(game.getBoard().getWidth() / 2, game.getBoard().getHeight() / 2); decentFacing = deployCoords.direction(center); } final Entity deployEntity = game.getEntity(entityNum); final IHex deployHex = game.getBoard().getHex(deployCoords); int deployElevation = getDeployElevation(deployEntity, deployHex); deployElevation -= deployHex.getLevel(); deploy(entityNum, deployCoords, decentFacing, deployElevation); }

Target:
protected void calculateDeployment() { final int entityNum = game.getFirstDeployableEntityNum(game.getTurnForPlayer(localPlayerNumber)); if (getLogger().getLogLevel(LOGGING_CATEGORY).toInt() > LogLevel.WARNING.toInt()) { sendChat("deploying unit " + getEntity(entityNum).getChassis(), LogLevel.INFO); } if (getForcedWithdrawal() && getEntity(entityNum).isCrippled()) { getLogger().info("Declining to deploy crippled unit: " + getEntity(entityNum).getChassis() + ". Removing unit."); sendDeleteEntity(entityNum); return; } final List<Coords> startingCoords = getStartingCoordsArray(game.getEntity(entityNum)); if (0 == startingCoords.size()) { getLogger().error("No valid locations to deploy " + getEntity(entityNum).getDisplayName()); } final Coords deployCoords = getFirstValidCoords(getEntity(entityNum), startingCoords); if (null == deployCoords) { getLogger().error("getCoordsAround gave no location for " + getEntity(entityNum).getChassis() + ". Removing unit."); sendDeleteEntity(entityNum); return; } int decentFacing = -1; for (final Entity e : getEnemyEntities()) { if (e.isDeployed() && !e.isOffBoard()) { decentFacing = deployCoords.direction(e.getPosition()); break; } } if (-1 == decentFacing) { final Coords center = new Coords(game.getBoard().getWidth() / 2, game.getBoard().getHeight() / 2); decentFacing = deployCoords.direction(center); } final Entity deployEntity = game.getEntity(entityNum); final IHex deployHex = game.getBoard().getHex(deployCoords); int deployElevation = getDeployElevation(deployEntity, deployHex); deployElevation -= deployHex.getLevel(); deploy(entityNum, deployCoords, decentFacing, deployElevation); }