Well, it is working, but I need some suggestions on how to display the effect. I have attached the files you can use to try it; install over 1.6.5 only. If you build your initial palace and look at the help, you will see it has huge bonuses for all the yields and commerces. Now use WB to give yourself some spice resources and put harvesters on them. If you hunt around in the city screen, you can see the effects. For example, if you have five spice resources, you will see a lot of extra water and hammer income at the top of the city screen; you will see a high espionage per turn rate in the espionage screen, etc. All of the computations are working. The key new text in the building xml file is:
Code:
<BonusConsumed>BONUS_SPICE</BonusConsumed>
<CommerceProduced>
<iCommerce>200</iCommerce>
<iCommerce>300</iCommerce>
<iCommerce>400</iCommerce>
<iCommerce>500</iCommerce>
</CommerceProduced>
<YieldProduced>
<iYield>600</iYield>
<iYield>700</iYield>
<iYield>800</iYield>
</YieldProduced>
The four commerce values are gold, beakers, culture, espionage, and the three yield values are food, hammers, commerce. The values are divided by 100 before use.
In the city screen, when you hover over any building, you get a *static* help text. It says what the building does. It does not give you any actual rates. Every player and every city will show the same help. I can't think of any place where you can see values which are different for each building. Any suggestions?
I have overloaded some of the corporation fields so these building yields look just like corporation yields. That does not seem to help much.
If you also found your civ's spice corporation, you will see even more commerce income. At least for this one, there is a popup where you can see the effects. In the upper right part of the city screen, there is a list of all the corps in the city. The hover help for the corp does show the dynamic effect. That is, the commerce income shown there is multiplied by the number of resources you control. So for corporations, you can see all the values.
Where should I display the values for the building?