Bazaar developer reference

CvMinorCivAI::GetCurrentFaithBonus(PlayerTypes)

Defined in
CvMinorCivAI.cpp, line 8207
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_GetCurrentFaithBonus

Hooks

static bool BeforeCvMinorCivAI_GetCurrentFaithBonus(CvMinorCivAI* self, PlayerTypes ePlayer, int& result);static void AfterCvMinorCivAI_GetCurrentFaithBonus(CvMinorCivAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvMinorCivAI_GetCurrentFaithBonus(int (*original)(CvMinorCivAI*, PlayerTypes), CvMinorCivAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvMinorCivAI_GetCurrentFaithBonus>(host, &BeforeCvMinorCivAI_GetCurrentFaithBonus);CivRegisterAfter<CivHooks::CvMinorCivAI_GetCurrentFaithBonus>(host, &AfterCvMinorCivAI_GetCurrentFaithBonus);CivRegisterReplace<CivHooks::CvMinorCivAI_GetCurrentFaithBonus>(host, &ReplaceCvMinorCivAI_GetCurrentFaithBonus);

Code

8206/// Total faith bonus from this minor civ for this player8207int CvMinorCivAI::GetCurrentFaithBonus(PlayerTypes ePlayer)8208{8209	int iValue = 0;82108211	iValue += GetCurrentFaithFlatBonus(ePlayer);82128213	return iValue;8214}

Calls

Called by