Minor Annoyance
Deity
The way it currently is, global warming is worse on slower speed games because there are more turns for it to occur. I could divide the GW chance by the speed (0.66 for quick, 1.5 for epic, 3 for marathon) but that's not really the same. Three 33% chances aren't the same as having one 100% chance, so it would be better to have it run the code exactly once every tree turns in that example.
So I found this code:
and it could be adapted a global warming timer, but some parts like eVoteSource I don't think would apply. So could someone show me how to cut this down to the parts I need?
So I found this code:
Code:
int CvGame::getSecretaryGeneralTimer(VoteSourceTypes eVoteSource) const
{
FAssert(eVoteSource >= 0);
FAssert(eVoteSource < GC.getNumVoteSourceInfos());
return m_aiSecretaryGeneralTimer[eVoteSource];
}
void CvGame::setSecretaryGeneralTimer(VoteSourceTypes eVoteSource, int iNewValue)
{
FAssert(eVoteSource >= 0);
FAssert(eVoteSource < GC.getNumVoteSourceInfos());
m_aiSecretaryGeneralTimer[eVoteSource] = iNewValue;
FAssert(getSecretaryGeneralTimer(eVoteSource) >= 0);
}
void CvGame::changeSecretaryGeneralTimer(VoteSourceTypes eVoteSource, int iChange)
{
setSecretaryGeneralTimer(eVoteSource, getSecretaryGeneralTimer(eVoteSource) + iChange);
}