Differential D4791 Diff 20944 ps/trunk/binaries/data/mods/public/simulation/ai/petra/researchManager.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/ai/petra/researchManager.js
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | if (phase1) | ||||
continue; | continue; | ||||
} | } | ||||
for (let i in template.modifications) | for (let i in template.modifications) | ||||
{ | { | ||||
if (gameState.ai.HQ.navalMap && template.modifications[i].value === "ResourceGatherer/Rates/food.fish") | if (gameState.ai.HQ.navalMap && template.modifications[i].value === "ResourceGatherer/Rates/food.fish") | ||||
return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 }; | return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 }; | ||||
else if (template.modifications[i].value === "ResourceGatherer/Rates/food.fruit") | else if (template.modifications[i].value === "ResourceGatherer/Rates/food.fruit") | ||||
return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 }; | return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 }; | ||||
else if (template.modifications[i].value === "ResourceGatherer/Rates/food.grain" || template.modifications[i].value === "ResourceGatherer/Rates/food.rice") | else if (template.modifications[i].value === "ResourceGatherer/Rates/food.grain") | ||||
return { "name": tech[0], "increasePriority": false }; | return { "name": tech[0], "increasePriority": false }; | ||||
else if (template.modifications[i].value === "ResourceGatherer/Rates/wood.tree") | else if (template.modifications[i].value === "ResourceGatherer/Rates/wood.tree") | ||||
return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 }; | return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 }; | ||||
else if (template.modifications[i].value.startsWith("ResourceGatherer/Capacities")) | else if (template.modifications[i].value.startsWith("ResourceGatherer/Capacities")) | ||||
return { "name": tech[0], "increasePriority": false }; | return { "name": tech[0], "increasePriority": false }; | ||||
else if (template.modifications[i].value === "Attack/Ranged/MaxRange") | else if (template.modifications[i].value === "Attack/Ranged/MaxRange") | ||||
return { "name": tech[0], "increasePriority": false }; | return { "name": tech[0], "increasePriority": false }; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator