CvGameReligions::Init()
- Defined in
- CvReligionClasses.cpp, line 304
- Class
- CvGameReligions
- Hook name
CivHooks::CvGameReligions_Init
Hooks
static bool BeforeCvGameReligions_Init(CvGameReligions* self);static void AfterCvGameReligions_Init(CvGameReligions* self);static void ReplaceCvGameReligions_Init(void (*original)(CvGameReligions*), CvGameReligions* self);CivRegisterBefore<CivHooks::CvGameReligions_Init>(host, &BeforeCvGameReligions_Init);CivRegisterAfter<CivHooks::CvGameReligions_Init>(host, &AfterCvGameReligions_Init);CivRegisterReplace<CivHooks::CvGameReligions_Init>(host, &ReplaceCvGameReligions_Init);
Code
303/// Initialize class data304void CvGameReligions::Init()305{306 m_iMinimumFaithForNextPantheon = GC.getRELIGION_MIN_FAITH_FIRST_PANTHEON();307 m_iMinimumFaithForNextPantheon *= GC.getGame().getGameSpeedInfo().getTrainPercent();308 m_iMinimumFaithForNextPantheon /= 100;309}