Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/researchManager.js
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | let template = tech[1]._template; | ||||
continue; | continue; | ||||
} | } | ||||
for (let i in template.modifications) | for (let i in template.modifications) | ||||
{ | { | ||||
if (template.modifications[i].value === "ResourceGatherer/Rates/stone.rock") | if (template.modifications[i].value === "ResourceGatherer/Rates/stone.rock") | ||||
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/metal.ore") | else if (template.modifications[i].value === "ResourceGatherer/Rates/metal.ore") | ||||
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 === "BuildingAI/DefaultArrowCount") | else if (template.modifications[i].value === "ManpowerHolder/DefaultArrowCount") | ||||
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 === "Health/RegenRate") | else if (template.modifications[i].value === "Health/RegenRate") | ||||
return { "name": tech[0], "increasePriority": false }; | return { "name": tech[0], "increasePriority": false }; | ||||
else if (template.modifications[i].value === "Health/IdleRegenRate") | else if (template.modifications[i].value === "Health/IdleRegenRate") | ||||
return { "name": tech[0], "increasePriority": false }; | return { "name": tech[0], "increasePriority": false }; | ||||
} | } | ||||
} | } | ||||
return null; | return null; | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator