Skip to content

Commit

Permalink
More tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Jun 28, 2021
1 parent 5b594d5 commit c1c313e
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions multiplay/skirmish/cobra_includes/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function buildAAForPersonality()
const VTOL_COUNT = countEnemyVTOL();

//Use stormbringer if we have it.
if (countAndBuild("P0-AASite-Laser", Math.floor(VTOL_COUNT / 3)))
if (countAndBuild("P0-AASite-Laser", Math.floor(VTOL_COUNT / 2)))
{
return true;
}
Expand All @@ -446,7 +446,7 @@ function buildAAForPersonality()
var aaType = subPersonalities[personality].antiAir.defenses;
for (var i = aaType.length - 1; i >= 0; --i)
{
if (countAndBuild(aaType[i].stat, Math.floor(VTOL_COUNT / 3)))
if (countAndBuild(aaType[i].stat, Math.floor(VTOL_COUNT / 2)))
{
return true;
}
Expand Down Expand Up @@ -670,10 +670,6 @@ function buildBaseStructures()
{
return true; //a little fail-safe
}
if (!researchComplete && countAndBuild(structures.lab, 1))
{
return true;
}
if (countAndBuild(structures.factory, 2))
{
return true;
Expand Down Expand Up @@ -897,7 +893,6 @@ function buildOrders()

var isNTW = highOilMap();
var skip = false;
var allowFastHighTechBuild = ((gameTime > 240000) || (getRealPower() > 600));

if (findIdleTrucks(constructGroup).length === 0 && (!isNTW || findIdleTrucks(constructGroupNTWExtra).length === 0)) { return; }

Expand All @@ -913,9 +908,9 @@ function buildOrders()

if (isNTW && buildNTWPhase2()) { return; }

if (allowFastHighTechBuild && random(100) < 33 && buildAAForPersonality()) { return; }
if (allowFastHighTechBuild && buildExtras()) { return; }
if (allowFastHighTechBuild && random(100) < 33 && buildSpecialStructures()) { return; }
if (random(100) < 70 && buildAAForPersonality()) { return; }
if (buildExtras()) { return; }
if (random(100) < 33 && buildSpecialStructures()) { return; }
if (buildBaseStructures2()) { return; }

buildDefenses(undefined, false);
Expand Down

0 comments on commit c1c313e

Please sign in to comment.