diff --git a/multiplay/skirmish/cobra_includes/events.js b/multiplay/skirmish/cobra_includes/events.js index 1fa4285..4b71450 100644 --- a/multiplay/skirmish/cobra_includes/events.js +++ b/multiplay/skirmish/cobra_includes/events.js @@ -206,7 +206,7 @@ function eventAttacked(victim, attacker) return; } - if ((gameTime > 900000) || !highOilMap()) + if ((gameTime > 420000) || !highOilMap()) { startAttacking = true; //well, they want to play so... } diff --git a/multiplay/skirmish/cobra_includes/research.js b/multiplay/skirmish/cobra_includes/research.js index ee72e66..578d769 100644 --- a/multiplay/skirmish/cobra_includes/research.js +++ b/multiplay/skirmish/cobra_includes/research.js @@ -209,8 +209,8 @@ function research() { if (random(100) < (highOil ? 25 : 15)) { - if (!found) - found = pursueResearch(lab, "R-Vehicle-Metals03"); + found = pursueResearch(lab, "R-Vehicle-Metals03"); + if (!found && !turnOffCyborgs && countStruct(CYBORG_FACTORY)) found = pursueResearch(lab, "R-Cyborg-Metals03"); @@ -226,7 +226,7 @@ function research() if (!found && getResearch("R-Struc-Research-Upgrade04").done || (random(100) < 20)) found = evalResearch(lab, BODY_RESEARCH_1); - if (!found && getResearch("R-Struc-Research-Upgrade05").done && (random(100) < componentAvailable("Body12SUP") ? 35 : 15)) + if (!found && getResearch("R-Struc-Research-Upgrade05").done && (random(100) < (componentAvailable("Body12SUP") ? 35 : 15))) found = evalResearch(lab, BODY_RESEARCH_2); } } @@ -273,7 +273,7 @@ function research() if (!found && useVtol && random(100) < 70) { // Basic VTOL pads tried after Python. - if (!found && componentAvailable("Body11ABT") && random(100) < 70) + if (componentAvailable("Body11ABT") && random(100) < 70) found = pursueResearch(lab, "R-Struc-VTOLPad-Upgrade01"); if (!found && componentAvailable("V-Tol") && random(100) < subPersonalities[personality].vtolPriority) found = evalResearch(lab, VTOL_RES); @@ -332,7 +332,7 @@ function research() if (!found && useVtol && random(100) < 60) { // Basic VTOL pads tried after Python. - if (!found && componentAvailable("Body11ABT")) + if (componentAvailable("Body11ABT")) found = pursueResearch(lab, "R-Struc-VTOLPad-Upgrade01"); if (!found && componentAvailable("V-Tol") && random(100) < subPersonalities[personality].vtolPriority) found = evalResearch(lab, VTOL_RES); @@ -389,7 +389,7 @@ function research() if (!found && useVtol && random(100) < 80) { // Basic VTOL pads tried after Python. - if (!found && componentAvailable("Body11ABT") && random(100) < 80) + if (componentAvailable("Body11ABT") && random(100) < 80) found = pursueResearch(lab, "R-Struc-VTOLPad-Upgrade01"); if (!found && componentAvailable("V-Tol") && (random(100) < subPersonalities[personality].vtolPriority + 10)) found = evalResearch(lab, VTOL_RES); diff --git a/multiplay/skirmish/cobra_includes/tactics.js b/multiplay/skirmish/cobra_includes/tactics.js index bd498bd..e1fc1f1 100644 --- a/multiplay/skirmish/cobra_includes/tactics.js +++ b/multiplay/skirmish/cobra_includes/tactics.js @@ -573,7 +573,6 @@ function enemyUnitsInBase() var high = highOilMap(); if (!startAttacking && - ((gameTime > high ? 900000 : 300000) && (enemyUnits.length > high ? 20 : 8)) && enemyUnits[0].droidType !== DROID_CONSTRUCT && enemyUnits[0].droidType !== DROID_SENSOR) { @@ -660,6 +659,11 @@ function baseShuffleDefensePattern() var x = sector.x1 + random(sector.x2); var y = sector.y1 + random(sector.y2); + if (!propulsionCanReach("wheeled01", MY_BASE.x, MY_BASE.y, x, y)) + { + return; + } + if (x <= 2) { x = 2;