Bazaar developer reference

CvPlayer::ChangeCityCountUnhappinessMod(int)

Defined in
CvPlayer.cpp, line 12925
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeCityCountUnhappinessMod

Hooks

static bool BeforeCvPlayer_ChangeCityCountUnhappinessMod(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeCityCountUnhappinessMod(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeCityCountUnhappinessMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeCityCountUnhappinessMod>(host, &BeforeCvPlayer_ChangeCityCountUnhappinessMod);CivRegisterAfter<CivHooks::CvPlayer_ChangeCityCountUnhappinessMod>(host, &AfterCvPlayer_ChangeCityCountUnhappinessMod);CivRegisterReplace<CivHooks::CvPlayer_ChangeCityCountUnhappinessMod>(host, &ReplaceCvPlayer_ChangeCityCountUnhappinessMod);

Code

12924/// Change City Count Unhappiness Mod (-50 = 50% of normal)12925void CvPlayer::ChangeCityCountUnhappinessMod(int iChange)12926{12927	if(iChange != 0)12928	{12929		m_iCityCountUnhappinessMod += iChange;12930	}12931}

Calls

Called by