Ticket #2617: headquarters.js.patch
File headquarters.js.patch, 946 bytes (added by , 10 years ago) |
---|
-
ps/trunk/binaries/data/mods/public/simulation/ai/aegis/headquarters.js
1022 1022 if (gameState.civ() !== "gaul" && gameState.civ() !== "brit" && gameState.civ() !== "iber" && 1023 1023 workersNumber > 130 && gameState.currentPhase() > 2) 1024 1024 { 1025 var Const = 0;1025 var inConst = 0; 1026 1026 for (var i in this.bAdvanced) 1027 Const += gameState.countEntitiesByType(gameState.applyCiv(this.bAdvanced[i]), true);1027 inConst += gameState.countEntitiesByType(gameState.applyCiv(this.bAdvanced[i]), true); 1028 1028 if (inConst == 1) { 1029 1029 var i = Math.floor(Math.random() * this.bAdvanced.length); 1030 1030 if (gameState.countEntitiesAndQueuedByType(gameState.applyCiv(this.bAdvanced[i]), true) < 1){