davidlallen
Deity
I have partially implemented a modcomp which allows buildings to generate yield and commerce based on the number of a resource controlled. For example, "+2 production per coal resource controlled" or "+0.75 food per rice resource controlled". You can view this as "Lightweight Corporations". The effect is similar, but there is no maintenance, no spread, and no executives. Please see this thread for additional design discussion.
I have implemented the schema, data load, calculations, and part of the display. I am stuck on the other part of the display. In vanilla, when you build a shrine, its effects depend on the number of other cities following the religion. In the city screen, when you look at the building list on the left, you see a line like "Church of the Nativity +8 gold +4 culture". Also, when you hover over the name, the hover help gives the static effect ("+1 gold per city") and also the current dynamic result ("+8 gold") on the first line.
The hover help is controlled by CvGameTextMgr::setBuildingHelp() and I have added my code to that. However, I am not able to find where the values are computed for the line in the building list. As a result, my hover help is right, but the building list data is wrong. Please see attached screenshot. The text next to the palace should also indicate the huge commerce bonus, even if all the text does not fit.
Does anybody know where the text in each line of the building list is created?
I have implemented the schema, data load, calculations, and part of the display. I am stuck on the other part of the display. In vanilla, when you build a shrine, its effects depend on the number of other cities following the religion. In the city screen, when you look at the building list on the left, you see a line like "Church of the Nativity +8 gold +4 culture". Also, when you hover over the name, the hover help gives the static effect ("+1 gold per city") and also the current dynamic result ("+8 gold") on the first line.
The hover help is controlled by CvGameTextMgr::setBuildingHelp() and I have added my code to that. However, I am not able to find where the values are computed for the line in the building list. As a result, my hover help is right, but the building list data is wrong. Please see attached screenshot. The text next to the palace should also indicate the huge commerce bonus, even if all the text does not fit.
Does anybody know where the text in each line of the building list is created?