Start a golden age?

Player:ChangeGoldenAgeTurns( x )

If you were already in a golden age, this adds x turns to it. If you're not, then it starts an X-turn golden age.
 
Aha, a typo! :lol:

player:ChangeGoldenAgeTurns(player:GetGoldenAgeModifier() * (GameDefines.GOLDEN_AGE_LENGTH - player:GetNumGoldenAges()))

I forgot Firaxis does modifiers (M-1) * 100. It's sort of weird... surely the difference between a float and integer doesn't have a significant impact on performance for such seldom-used variables like this... <shrugs>
 
Back
Top Bottom