Differential D349 Diff 1495 ps/trunk/binaries/data/mods/public/simulation/ai/petra/startingStrategy.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/ai/petra/startingStrategy.js
Show First 20 Lines • Show All 482 Lines • ▼ Show 20 Lines | for (let base of this.baseManagers) | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (this.Config.debug > 1) | if (this.Config.debug > 1) | ||||
API3.warn("startingWood: " + startingWood + " (cut at 8500 for no rush and 6000 for saveResources)"); | API3.warn("startingWood: " + startingWood + " (cut at 8500 for no rush and 6000 for saveResources)"); | ||||
if (startingWood < 6000) | if (startingWood < 6000) | ||||
{ | { | ||||
this.saveResources = true; | this.saveResources = true; | ||||
this.Config.Economy.popForTown = 40; // Switch to town phase as soon as possible to be able to expand | this.Config.Economy.popForTown = Math.floor(0.75 * this.Config.Economy.popForTown); // Switch to town phase sooner to be able to expand | ||||
if (startingWood < 2000 && this.needFarm) | if (startingWood < 2000 && this.needFarm) | ||||
{ | { | ||||
this.needCorral = true; | this.needCorral = true; | ||||
this.needFarm = false; | this.needFarm = false; | ||||
} | } | ||||
} | } | ||||
if (startingWood > 8500 && this.canBuildUnits) | if (startingWood > 8500 && this.canBuildUnits) | ||||
{ | { | ||||
Show All 35 Lines |
Wildfire Games · Phabricator