Flexible Difficulty - adjust timing?

Grunthex

Prince
Joined
Oct 21, 2001
Messages
366
Location
Calgary, Canada
As the title says, I'm looking for a way to adjust the number of turns between the difficulty changes if you use the flexible difficulty option. I love the option, but it just seems so fast, that you're always at one end or another if you play a good slow game speed.
 
file CvGame.cpp function CvGame::doTurn()

this part:
Spoiler :
Code:
    if (isOption(GAMEOPTION_FLEXIBLE_DIFFICULTY))
    {
        if (!GC.getGameINLINE().isGameMultiPlayer())
        {
            changeFlexibleDifficultyCounter(1);
/*************************************************************************************************/
/**	Xienwolf Tweak							12/13/08											**/
/**																								**/
/**						Modifies Challenge escalation based on Gamespeed						**/
/*************************************************************************************************/
/**								---- Start Original Code ----									**
            if (getFlexibleDifficultyCounter() >= 20)
/**								----  End Original Code  ----									**/
            if (getFlexibleDifficultyCounter() >= 20 * GC.getGameSpeedInfo(getGameSpeedType()).getGrowthPercent() / 100)
/*************************************************************************************************/
/**	Tweak									END													**/
/*************************************************************************************************/
there might not be the xienwolf's changes, so in that case it will be only:
Spoiler :
Code:
    if (isOption(GAMEOPTION_FLEXIBLE_DIFFICULTY))
    {
        if (!GC.getGameINLINE().isGameMultiPlayer())
        {
            changeFlexibleDifficultyCounter(1);
            if (getFlexibleDifficultyCounter() >= 20)
change the "20" to whatever value you want
 
Back
Top Bottom