Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/baseManager.js
Show First 20 Lines • Show All 795 Lines • ▼ Show 20 Lines | for (let target of foundations.values()) | ||||
if (target.hasClass("House") && gameState.getPopulationLimit() < gameState.getPopulation() + 5 && | if (target.hasClass("House") && gameState.getPopulationLimit() < gameState.getPopulation() + 5 && | ||||
gameState.getPopulationLimit() < gameState.getPopulationMax()) | gameState.getPopulationLimit() < gameState.getPopulationMax()) | ||||
maxTotalBuilders += 2; | maxTotalBuilders += 2; | ||||
let targetNB = 2; | let targetNB = 2; | ||||
if (target.hasClass("Fortress") || target.hasClass("Wonder") || | if (target.hasClass("Fortress") || target.hasClass("Wonder") || | ||||
target.getMetadata(PlayerID, "phaseUp") == true) | target.getMetadata(PlayerID, "phaseUp") == true) | ||||
targetNB = 7; | targetNB = 7; | ||||
else if (target.hasClass("Barracks") || target.hasClass("Range") || target.hasClass("Stable") || | else if (target.hasClass("Barracks") || target.hasClass("Range") || target.hasClass("Stable") || | ||||
target.hasClass("DefenseTower") || target.hasClass("Market")) | target.hasClass("Tower") || target.hasClass("Market")) | ||||
Nescio: i.e. Town phase tower | |||||
Done Inline ActionsOr should this too be changed to Tower? Nescio: Or should this too be changed to `Tower`? | |||||
targetNB = 4; | targetNB = 4; | ||||
else if (target.hasClass("House") || target.hasClass("DropsiteWood")) | else if (target.hasClass("House") || target.hasClass("DropsiteWood")) | ||||
targetNB = 3; | targetNB = 3; | ||||
if (target.getMetadata(PlayerID, "baseAnchor") == true || | if (target.getMetadata(PlayerID, "baseAnchor") == true || | ||||
target.hasClass("Wonder") && gameState.getVictoryConditions().has("wonder")) | target.hasClass("Wonder") && gameState.getVictoryConditions().has("wonder")) | ||||
{ | { | ||||
targetNB = 15; | targetNB = 15; | ||||
▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
i.e. Town phase tower