Skip to content

Commit

Permalink
production/repair changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Jun 29, 2019
1 parent c2d224e commit d5e9f87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion multiplay/skirmish/Cobra.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion multiplay/skirmish/cobra_includes/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions multiplay/skirmish/cobra_includes/tactics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit d5e9f87

Please sign in to comment.