Subversion Repositories RAND

Compare Revisions

Ignore whitespace Rev 1090 → Rev 1091

/Rise of Mankind - A New Dawn/Assets/CvGameCoreDLL.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/Rise of Mankind - A New Dawn/Assets/CvGameCoreDLL.dll.100civs
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/Rise of Mankind - A New Dawn/Assets/Python/Contrib/CvModName.py
2,7 → 2,7
 
modName = "Rise of Mankind: A New Dawn"
displayName = "Rise of Mankind: A New Dawn"
modVersion = "2.2 (rev1090)"
modVersion = "2.2 (rev1091)"
 
civName = "BtS"
civVersion = "3.19"
/Rise of Mankind - A New Dawn/Assets/XML/A_New_Dawn_GlobalDefines.xml
498,9 → 498,17
</Define>
<Define>
<DefineName>DEFAULT_FLEXIBLE_DIFFICULTY_TURN_INCREMENTS</DefineName>
<iDefineIntVal>15</iDefineIntVal>
<iDefineIntVal>10</iDefineIntVal>
</Define>
<Define>
<DefineName>DEFAULT_FLEXIBLE_DIFFICULTY_AI_MIN_DIFFICULTY</DefineName>
<iDefineIntVal>-1</iDefineIntVal>
</Define>
<Define>
<DefineName>DEFAULT_FLEXIBLE_DIFFICULTY_AI_MAX_DIFFICULTY</DefineName>
<iDefineIntVal>-1</iDefineIntVal>
</Define>
<Define>
<DefineName>CULTURE_DECAY_TURNS</DefineName>
<iDefineIntVal>25</iDefineIntVal>
</Define>
/Rise of Mankind - A New Dawn/Assets/XML/Text/INTERFACE.xml
17714,7 → 17714,7
</TEXT>
<TEXT>
<Tag>TXT_KEY_BUG_OPT_ROMSETTINGS__FLEXIBLEDIFFICULTYTURNINCREMENTS_HOVER</Tag>
<English>How often the game checks your difficulty level and adjusts it. Requires Flexible Difficulty to be enabled.</English>
<English>Frequency of difficulty level check and update. Requires Flexible Difficulty. Suggested values: Blitz 10, Quick 15, Normal 20, Epic 30, Marathon 40, Snail 60, Eternity 80 </English>
<French>Détermine la fréquence à laquelle le jeu vérifie le niveau de difficulté et l'ajuste. L'option "difficulté flexible" doit être activée.</French>
<German>Bestimmt, wie oft das Spiel Deinen Schwierigkeitsgrad überprüft und anpasst. Flexibler Schwierigkeitsgrad muss aktiviert sein.</German>
<Polish>Iloäâ tur po ilu ma się zmieniâ poziom trudnoäci. Wymaga włáczonej opcji Zmienna trudnoäâ.</Polish>
/Sources/CvGame.cpp
13234,24 → 13234,24
{
int iTurns = kPlayer.getModderOption(MODDEROPTION_FLEXIBLE_DIFFICULTY_TURN_INCREMENTS);
int iTimer = getFlexibleDifficultyTimer((PlayerTypes)iI);
if (!isPitboss())
{
// if (!isPitboss())
// {
if (iTurns <= 0 || (!kPlayer.isHuman() && isModderGameOption(MODDERGAMEOPTION_AI_USE_FLEXIBLE_DIFFICULTY)))
{
iTurns = GC.getDefineINT("DEFAULT_FLEXIBLE_DIFFICULTY_TURN_INCREMENTS", 25);
iTurns *= GC.getGameSpeedInfo(getGameSpeedType()).getResearchPercent();
iTurns = GC.getDefineINT("DEFAULT_FLEXIBLE_DIFFICULTY_TURN_INCREMENTS", 10);
iTurns *= GC.getGameSpeedInfo(getGameSpeedType()).getGoldenAgePercent();
iTurns /= 100;
}
}
else //45deg: hack for Pitboss games: using the same timer for both humans and AI, otherwise the game might go OOS
{
// }
// else //45deg: hack for Pitboss games: using the same timer for both humans and AI, otherwise the game might go OOS
/* {
if (iTurns <= 0 || isModderGameOption(MODDERGAMEOPTION_AI_USE_FLEXIBLE_DIFFICULTY))
{
iTurns = GC.getDefineINT("DEFAULT_FLEXIBLE_DIFFICULTY_TURN_INCREMENTS", 15);
iTurns *= GC.getGameSpeedInfo(getGameSpeedType()).getResearchPercent();
iTurns *= GC.getGameSpeedInfo(getGameSpeedType()).getGoldenAgePercent();
iTurns /= 180;
}
}
} */ //45deg:removed Pitboss hack, it doesn't work like this
 
logMsg("[Flexible Difficulty] (%d / %d) turns until next flexible difficulty check for Player: %S", iTimer, iTurns, kPlayer.getName());
13266,15 → 13266,19
if (kPlayer.isModderOption(MODDEROPTION_FLEXIBLE_DIFFICULTY) || (!kPlayer.isHuman() && isModderGameOption(MODDERGAMEOPTION_AI_USE_FLEXIBLE_DIFFICULTY)) || gDLL->IsPitbossHost())
{
logMsg("[Flexible Difficulty] Player: %S has Flexible Difficulty Enabled", kPlayer.getName());
int iMinHandiCap = kPlayer.getModderOption(MODDEROPTION_FLEXIBLE_DIFFICULTY_MIN_DIFFICULTY);
int iMaxHandicap = kPlayer.getModderOption(MODDEROPTION_FLEXIBLE_DIFFICULTY_MAX_DIFFICULTY);
int iMinHandiCap = kPlayer.getModderOption(MODDEROPTION_FLEXIBLE_DIFFICULTY_MIN_DIFFICULTY) -1;
int iMaxHandicap = kPlayer.getModderOption(MODDEROPTION_FLEXIBLE_DIFFICULTY_MAX_DIFFICULTY) -1;
if (iMaxHandicap < 0)
iMaxHandicap = MAX_INT;
 
if (!kPlayer.isHuman() && isModderGameOption(MODDERGAMEOPTION_AI_USE_FLEXIBLE_DIFFICULTY))
{
iMinHandiCap = 0;
iMaxHandicap = GC.getNumHandicapInfos() - 1;
// iMinHandiCap = 0;
// iMaxHandicap = GC.getNumHandicapInfos() - 1;
iMinHandiCap = GC.getDefineINT("DEFAULT_FLEXIBLE_DIFFICULTY_AI_MIN_DIFFICULTY");
iMaxHandicap = GC.getDefineINT("DEFAULT_FLEXIBLE_DIFFICULTY_AI_MAX_DIFFICULTY");
if (iMaxHandicap < 0)
iMaxHandicap = MAX_INT;
}
//Reset counter