Resource icon

[BtS] Decaying Resources Mod 2016-10-05

Description:
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.

-----Notes to Modmakers-----

If you want to use this mod component in your mod I have tried to make things
as easy as possible for you. In the XML files I have added
<!-- Decaying Resources Mod Start --> and
<!-- Decaying Resources Mod End --> in all of the places where changes
were made. In the SDK files I have added
// < Decaying Resources Mod Start > and
// < Decaying Resources Mod End > in all of the places where changes
were made.

Please look at the current values set in the CIV4BonusInfos.xml file to make
sure they align with what you are wishing.


-----Version Information-----

-----v0.2BtS------

- Fixed a bug where a resource was used before it was even available. Thanks
for reporting the issue TheLadiesOgre

- Fixed a bug where resource consumption rate was being shown on screen even
though that resource was inexhustable.

Spoiler :

-----v0.1BtS------
- Setup the Decaying Resources Mod infrastructure

- Added the new <fDecayRate> tag that allows the specification of how fast a
bonus should decay

- Added the new <fBonusLifeAmount> tag that allows the specification of how
many turns a resource is available.

- Added the new <fReplenishAmount> tag that allows the specification of how
fast a bonus should be replenished.


-----===Credits & Thanks===-----

- Exavier
Composite Mod - readme.txt format

- Dom Pedro II
For the idea for this mod
Author
TheLopez
Downloads
347
Views
347
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom