Bazaar developer reference

CvPlayer::GetUnhappinessMod() const

Defined in
CvPlayer.cpp, line 12901
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetUnhappinessMod

Hooks

static bool BeforeCvPlayer_GetUnhappinessMod(const CvPlayer* self, int& result);static void AfterCvPlayer_GetUnhappinessMod(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetUnhappinessMod(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetUnhappinessMod>(host, &BeforeCvPlayer_GetUnhappinessMod);CivRegisterAfter<CivHooks::CvPlayer_GetUnhappinessMod>(host, &AfterCvPlayer_GetUnhappinessMod);CivRegisterReplace<CivHooks::CvPlayer_GetUnhappinessMod>(host, &ReplaceCvPlayer_GetUnhappinessMod);

Code

12900/// Unhappiness Mod (-50 = 50% of normal)12901int CvPlayer::GetUnhappinessMod() const12902{12903	return m_iUnhappinessMod;12904}

Calls

Called by