diff --git a/multiplay/skirmish/Cobra.js b/multiplay/skirmish/Cobra.js index 25d68d9..5029255 100644 --- a/multiplay/skirmish/Cobra.js +++ b/multiplay/skirmish/Cobra.js @@ -16,7 +16,7 @@ const OIL_RES = "OilResource"; const MIN_POWER = 150; const SUPER_LOW_POWER = 80; const MIN_BUILD_POWER = 220; -const PRODUCTION_POWER = Math.floor(SUPER_LOW_POWER / 3); +const PRODUCTION_POWER = SUPER_LOW_POWER; const ELECTRONIC_DEFENSES = [ "Sys-SpyTower", "WallTower-EMP", diff --git a/multiplay/skirmish/cobra_includes/production.js b/multiplay/skirmish/cobra_includes/production.js index e892dc1..d8dfa0b 100644 --- a/multiplay/skirmish/cobra_includes/production.js +++ b/multiplay/skirmish/cobra_includes/production.js @@ -280,7 +280,7 @@ function buildSys(id, weap) weap = ["Sensor-WideSpec", "SensorTurret1Mk1"]; } - return (fac !== null && getRealPower() > PRODUCTION_POWER && buildDroid(fac, "System unit", random(2) ? SYSTEM_BODY : VTOL_BODY, SYSTEM_PROPULSION, "", "", weap)); + return (fac !== null && buildDroid(fac, "System unit", random(2) ? SYSTEM_BODY : VTOL_BODY, SYSTEM_PROPULSION, "", "", weap)); } //Create a cyborg with available research. Expects a boolean for useEngineer or can undefined. diff --git a/multiplay/skirmish/cobra_includes/tactics.js b/multiplay/skirmish/cobra_includes/tactics.js index d6e1203..f245ee5 100644 --- a/multiplay/skirmish/cobra_includes/tactics.js +++ b/multiplay/skirmish/cobra_includes/tactics.js @@ -146,7 +146,7 @@ function repairDroid(droidID, force) return true; //pretend it is busy } - const FORCE_REPAIR_PERCENT = 55; + const FORCE_REPAIR_PERCENT = 66; const EXPERIENCE_DIVISOR = 26; const HEALTH_TO_REPAIR = 67 + Math.floor(droid.experience / EXPERIENCE_DIVISOR); @@ -720,7 +720,7 @@ function retreatTactics() { var droid = droids[i]; - if (enumRange(droid.x, droid.y, SCAN_RADIUS, ENEMIES, false).length !== 0) + if (enumRange(droid.x, droid.y, SCAN_RADIUS, ENEMIES, true).length !== 0) { orderDroidLoc(droid, DORDER_MOVE, MY_BASE.x, MY_BASE.y); }