Ideology Unhappiness

diddl

Chieftain
Joined
Jan 15, 2006
Messages
65
Location
Denmark
Hi

Hope somebody can help me, because im now pretty tired of looking through Lua/DLL files - i can't seem to find the values so i can modify the Unhappiness values you get from Ideology Pressure - can it really be possible that it's not changeable?
 
modify the Unhappiness values you get from Ideology Pressure - can it really be possible that it's not changeable?

Not only is it possible, but it's the case

Code:
/// Compute effects of dissatisfaction
int CvPlayerCulture::ComputePublicOpinionUnhappiness(int iDissatisfaction, int &iPerCityUnhappy, int &iUnhappyPerXPop) {
  if (iDissatisfaction < 3) {
    iPerCityUnhappy = 1;
    iUnhappyPerXPop = 10;
  } else if (iDissatisfaction < 5) {
    iPerCityUnhappy = 2;
    iUnhappyPerXPop = 5;
  } else {
    iPerCityUnhappy = 4;
    iUnhappyPerXPop = 3;
  }

  return max(m_pPlayer->getNumCities() * iPerCityUnhappy, m_pPlayer->getTotalPopulation() / iUnhappyPerXPop);
}
 
LUA:
Player.GetPublicOpinionUnhappiness --(I assume it is "iDissatisfaction"/PublicOpinionUnhappyLevel)
Player.GetUnhappinessFromPublicOpinion --(this should be useful if you try to modify it in game [add happiness/unhappiness based on it])
 
Back
Top Bottom