Bazaar developer reference

CvPlayerReligions::ChangeNumProphetsSpawned(int, bool)

Defined in
CvReligionClasses.cpp, line 2979
Class
CvPlayerReligions
Hook name
CivHooks::CvPlayerReligions_ChangeNumProphetsSpawned

Hooks

static bool BeforeCvPlayerReligions_ChangeNumProphetsSpawned(CvPlayerReligions* self, int iValue, bool bIsFree);static void AfterCvPlayerReligions_ChangeNumProphetsSpawned(CvPlayerReligions* self, int iValue, bool bIsFree);static void ReplaceCvPlayerReligions_ChangeNumProphetsSpawned(void (*original)(CvPlayerReligions*, int, bool), CvPlayerReligions* self, int iValue, bool bIsFree);CivRegisterBefore<CivHooks::CvPlayerReligions_ChangeNumProphetsSpawned>(host, &BeforeCvPlayerReligions_ChangeNumProphetsSpawned);CivRegisterAfter<CivHooks::CvPlayerReligions_ChangeNumProphetsSpawned>(host, &AfterCvPlayerReligions_ChangeNumProphetsSpawned);CivRegisterReplace<CivHooks::CvPlayerReligions_ChangeNumProphetsSpawned>(host, &ReplaceCvPlayerReligions_ChangeNumProphetsSpawned);

Code

2977/// Change count of prophets spawned2978#if defined(MOD_GLOBAL_TRULY_FREE_GP)2979void CvPlayerReligions::ChangeNumProphetsSpawned(int iValue, bool bIsFree)2980#else2981void CvPlayerReligions::ChangeNumProphetsSpawned(int iValue)2982#endif2983{2984#if defined(MOD_GLOBAL_TRULY_FREE_GP)2985	if (bIsFree) m_iNumFreeProphetsSpawned += iValue;2986#endif2987	m_iNumProphetsSpawned += iValue;2988}

Called by