Changes between Version 1 and Version 2 of Ticket #6691
- Timestamp:
- Jan 16, 2023, 9:31:20 AM (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6691 – Description
v1 v2 17 17 --- a/binaries/data/mods/public/gui/reference/viewer/ViewerPage.js 18 18 +++ b/binaries/data/mods/public/gui/reference/viewer/ViewerPage.js 19 @@ -77,6 +77,11 @@ class ViewerPage extends ReferencePage 19 @@ -76,7 +76,14 @@ class ViewerPage extends ReferencePage 20 20 21 let researchers = templateLists.techs.get(currentTemplateName); 21 22 if (researchers && researchers.length) 23 + { 22 24 this.currentTemplate.researchedByListOfNames = researchers.map(researcher => getEntityNames(this.TemplateParser.getEntity(researcher, this.activeCiv))); 23 25 + 24 + const {techCostMultiplier} = this.TemplateParser.getEntity(researchers[0], this.activeCiv); 25 + for (const res in this.currentTemplate.cost) 26 + if (this.currentTemplate.cost[res]) 27 + this.currentTemplate.cost[res] *= techCostMultiplier[res]; 26 + const {techCostMultiplier} = this.TemplateParser.getEntity(researchers[0], this.activeCiv); 27 + for (const res in this.currentTemplate.cost) 28 + if (this.currentTemplate.cost[res]) 29 + this.currentTemplate.cost[res] *= techCostMultiplier[res]; 30 + } 28 31 } 29 32