Bazaar developer reference

CvPlayer::GetCityCountUnhappinessMod() const

Defined in
CvPlayer.cpp, line 12918
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetCityCountUnhappinessMod

Hooks

static bool BeforeCvPlayer_GetCityCountUnhappinessMod(const CvPlayer* self, int& result);static void AfterCvPlayer_GetCityCountUnhappinessMod(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetCityCountUnhappinessMod(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetCityCountUnhappinessMod>(host, &BeforeCvPlayer_GetCityCountUnhappinessMod);CivRegisterAfter<CivHooks::CvPlayer_GetCityCountUnhappinessMod>(host, &AfterCvPlayer_GetCityCountUnhappinessMod);CivRegisterReplace<CivHooks::CvPlayer_GetCityCountUnhappinessMod>(host, &ReplaceCvPlayer_GetCityCountUnhappinessMod);

Code

12917/// City Count Unhappiness Mod (-50 = 50% of normal)12918int CvPlayer::GetCityCountUnhappinessMod() const12919{12920	return m_iCityCountUnhappinessMod;12921}

Calls

Called by