Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/startingStrategy.js
Show All 39 Lines | if (!gameState.isTemplateAvailable(template) || !gameState.getTemplate(template).available(gameState)) | ||||
this.canBuildUnits = false; | this.canBuildUnits = false; | ||||
this.dispatchUnits(gameState); | this.dispatchUnits(gameState); | ||||
} | } | ||||
else | else | ||||
this.buildFirstBase(gameState); | this.buildFirstBase(gameState); | ||||
} | } | ||||
// configure our first base strategy | // configure our first base strategy | ||||
if (!this.hasPotentialBase()) | if (this.hasPotentialBase()) | ||||
this.configFirstBase(gameState); | this.configFirstBase(gameState); | ||||
}; | }; | ||||
/** | /** | ||||
* Assign the starting entities to the different bases | * Assign the starting entities to the different bases | ||||
*/ | */ | ||||
PETRA.HQ.prototype.assignStartingEntities = function(gameState) | PETRA.HQ.prototype.assignStartingEntities = function(gameState) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 452 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator