RogerBacon
King
- Joined
- Nov 16, 2003
- Messages
- 649
[edit] 02/07/2006 version 1.1
Hello all,
This is a mod that replaces the 4 experience you get from barracks and drydock with a chance of getting 1 experience each turn. You can customize the chance of getting experience (currently set to 10%) and also you can customize the maximum amount of experience you can get from a barracks or drydock (currently set to 10).
Units must be in a city with a barracks (land units) or drydock (naval units) to have a chance of gaining experience each turn. Each unit is checked for independently to see if it gets experience each turn.
Version history:
Version 1.1 (02/07/2006)
Changed the requirement for naval units to "Harbor" rather than "Drydock" because drydocks come so late in the game and the naval aspects of Civ need as much of a boost as they can get.
Added an alternative method for calculating the chance of a unit getting an exp point each turn:
# Linear chance method
#iRandNum = gc.getGame().getMapRand().get(pUnit.getExperience()*2+1, "Barracks Training")
Lowered max exp to 8
Version 1.01 (1/02/2006) (247 downloads)
Optimized some code to help with make it compatible with future patches.
Added code to make sure the units in the city belonged to the player before giving the exp bonus.
Version 1.0 (1/01/2006)
Initial release. Designed to work with Civ4 version 1.52
Roger Bacon
Hello all,
This is a mod that replaces the 4 experience you get from barracks and drydock with a chance of getting 1 experience each turn. You can customize the chance of getting experience (currently set to 10%) and also you can customize the maximum amount of experience you can get from a barracks or drydock (currently set to 10).
Units must be in a city with a barracks (land units) or drydock (naval units) to have a chance of gaining experience each turn. Each unit is checked for independently to see if it gets experience each turn.
Version history:
Version 1.1 (02/07/2006)
Changed the requirement for naval units to "Harbor" rather than "Drydock" because drydocks come so late in the game and the naval aspects of Civ need as much of a boost as they can get.
Added an alternative method for calculating the chance of a unit getting an exp point each turn:
# Linear chance method
#iRandNum = gc.getGame().getMapRand().get(pUnit.getExperience()*2+1, "Barracks Training")
Lowered max exp to 8
Version 1.01 (1/02/2006) (247 downloads)
Optimized some code to help with make it compatible with future patches.
Added code to make sure the units in the city belonged to the player before giving the exp bonus.
Version 1.0 (1/01/2006)
Initial release. Designed to work with Civ4 version 1.52
Roger Bacon