Bazaar developer reference

CvBeliefEntry::GetYieldChangeAnySpecialist(int) const

Defined in
CvBeliefClasses.cpp, line 678
Class
CvBeliefEntry
Hook name
CivHooks::CvBeliefEntry_GetYieldChangeAnySpecialist

Hooks

static bool BeforeCvBeliefEntry_GetYieldChangeAnySpecialist(const CvBeliefEntry* self, int i, int& result);static void AfterCvBeliefEntry_GetYieldChangeAnySpecialist(const CvBeliefEntry* self, int i, int& result);static int ReplaceCvBeliefEntry_GetYieldChangeAnySpecialist(int (*original)(const CvBeliefEntry*, int), const CvBeliefEntry* self, int i);CivRegisterBefore<CivHooks::CvBeliefEntry_GetYieldChangeAnySpecialist>(host, &BeforeCvBeliefEntry_GetYieldChangeAnySpecialist);CivRegisterAfter<CivHooks::CvBeliefEntry_GetYieldChangeAnySpecialist>(host, &AfterCvBeliefEntry_GetYieldChangeAnySpecialist);CivRegisterReplace<CivHooks::CvBeliefEntry_GetYieldChangeAnySpecialist>(host, &ReplaceCvBeliefEntry_GetYieldChangeAnySpecialist);

Code

677/// Yield boost from having a specialist of any type in city678int CvBeliefEntry::GetYieldChangeAnySpecialist(int i) const679{680	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");681	CvAssertMsg(i > -1, "Index out of bounds");682	return m_piYieldChangeAnySpecialist ? m_piYieldChangeAnySpecialist[i] : -1;683}

Called by