Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/headquarters.js
Context not available. | |||||
let rangeTemplate = this.canBuild(gameState, "structures/{civ}_range") ? "structures/{civ}_range" : undefined; | let rangeTemplate = this.canBuild(gameState, "structures/{civ}_range") ? "structures/{civ}_range" : undefined; | ||||
let numRanges = gameState.getOwnEntitiesByClass("Range", true).length; | let numRanges = gameState.getOwnEntitiesByClass("Range", true).length; | ||||
let stableTemplate = this.canBuild(gameState, "structures/{civ}_stables") ? "structures/{civ}_stables" : | let stableTemplate = this.canBuild(gameState, "structures/{civ}_stable") ? "structures/{civ}_stable" : undefined; | ||||
this.canBuild(gameState, "structures/{civ}_stable") ? "structures/{civ}_stable" : undefined; | |||||
let numStables = gameState.getOwnEntitiesByClass("Stables", true).length; | let numStables = gameState.getOwnEntitiesByClass("Stables", true).length; | ||||
if (this.getAccountedPopulation(gameState) > this.Config.Military.popForBarracks1 || | if (this.getAccountedPopulation(gameState) > this.Config.Military.popForBarracks1 || | ||||
Context not available. |
Wildfire Games · Phabricator