This mod adds three new tags allowing the specification of how many units (in
turns) of a particular bonus are available, how fast bonuses are consumed and
how fast bonuses are replenished. I have added the new tags to all of the
standard bonuses included in the game. The new tags are not required for
bonuses but if you want to add the decay feature you will need to add them to
any new bonuses.
So for example in the pig bonus definition the tags are:
Code:
<fDecayRate>1</fDecayRate>
<fBonusLifeAmount>100</fBonusLifeAmount>
<fReplenishAmount>0.5</fReplenishAmount>
Meaning that one pig resource is consumed per turn, there are 100 turns of pig
available and the pig resource is replenished at .5 each turn when the plot
isn't worked by the city or if the plot doesn't contain a pasture but is
worked by the city. Buildings also add to the consumption of resources.
As a balance point the random discovery of resources is bumped up a little bit depending on the number of resources that have been exhausted.