Bazaar developer reference

CvPlayer::ChangeSecondReligionPantheonCount(int)

Defined in
CvPlayer.cpp, line 15810
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeSecondReligionPantheonCount

Hooks

static bool BeforeCvPlayer_ChangeSecondReligionPantheonCount(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeSecondReligionPantheonCount(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeSecondReligionPantheonCount(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeSecondReligionPantheonCount>(host, &BeforeCvPlayer_ChangeSecondReligionPantheonCount);CivRegisterAfter<CivHooks::CvPlayer_ChangeSecondReligionPantheonCount>(host, &AfterCvPlayer_ChangeSecondReligionPantheonCount);CivRegisterReplace<CivHooks::CvPlayer_ChangeSecondReligionPantheonCount>(host, &ReplaceCvPlayer_ChangeSecondReligionPantheonCount);

Code

15810void CvPlayer::ChangeSecondReligionPantheonCount(int iChange)15811{15812	if (iChange != 0)15813	{15814		m_iSecondReligionPantheonCount = m_iSecondReligionPantheonCount + iChange;15815		CvAssert(GetSecondReligionPantheonCount() >= 0);15816	}15817}

Called by