Opened 16 months ago
Closed 16 months ago
#6691 closed defect (fixed)
Template viewer for mace storehouse tech displays wrong time
Reported by: | Langbart | Owned by: | Freagarach |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 27 |
Component: | UI – In-game | Keywords: | |
Cc: | Patch: |
Description (last modified by )
reported by 0ad is the best rts game
in the forum:
Game guide of Macedonians error reporting (24/Dec/22)
Macedonian has warehouse technology - 100% of the study time. However, when the player clicks on "Learn Game > Structure > Warehouse (right mouse button)" or clicks on the right mouse button of the warehouse in the game, it shows the cost time. This may confuse the player.
bisect
- likley introduced with the introduction of the new civbonus for the
Macedonians
in [26627]
related ticket
- #6587 (10/Jul/22)
possible solution ?
-
binaries/data/mods/public/gui/reference/viewer/ViewerPage.js
a b class ViewerPage extends ReferencePage 76 76 77 77 let researchers = templateLists.techs.get(currentTemplateName); 78 78 if (researchers && researchers.length) 79 { 79 80 this.currentTemplate.researchedByListOfNames = researchers.map(researcher => getEntityNames(this.TemplateParser.getEntity(researcher, this.activeCiv))); 81 82 const {techCostMultiplier} = this.TemplateParser.getEntity(researchers[0], this.activeCiv); 83 for (const res in this.currentTemplate.cost) 84 if (this.currentTemplate.cost[res]) 85 this.currentTemplate.cost[res] *= techCostMultiplier[res]; 86 } 80 87 } 81 88 82 89 if (this.currentTemplate.builder && this.currentTemplate.builder.length)
Attachments (1)
Change History (4)
by , 16 months ago
Attachment: | mace_template_tech.png added |
---|
comment:1 by , 16 months ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
Minimize the diff from the possible solution section