Afforess
The White Wizard
I was going through the RevDCM code, adding new Local and National revolution index modifiers for buildings when I noticed this. You guys hardcoded Liberalism and The Scientific Method into the SDK to influence how much damage civics have on revolutions. That alone is bad, but you never exposed this, so players and modders may never notice this. Personally, I think that section of the code needs a rewrite.
The actual hardcoding takes place in CvPlayerAI, in " CvPlayerAI::AI_RevCalcCivicRelEffect(CivicTypes eCivic) const"
Instead of hardcoding two seemingly random technologies into the SDK to decrease the effect of revolutions, couldn't you make nations with a higher scientific output expierance revolutions less? That would still be useful, and have less of a "I just research Liberalism, so now my revolutions are gone forever" factor. A gradual scaling down is preferential to a one turn sudden shift.
The actual hardcoding takes place in CvPlayerAI, in " CvPlayerAI::AI_RevCalcCivicRelEffect(CivicTypes eCivic) const"
Code:
int iLiberalism = GC.getInfoTypeForString("TECH_LIBERALISM");
int iSciMethod = GC.getInfoTypeForString("TECH_SCIENTIFIC_METHOD");
Instead of hardcoding two seemingly random technologies into the SDK to decrease the effect of revolutions, couldn't you make nations with a higher scientific output expierance revolutions less? That would still be useful, and have less of a "I just research Liberalism, so now my revolutions are gone forever" factor. A gradual scaling down is preferential to a one turn sudden shift.