Bazaar developer reference

CvPromotionEntry::GetGoldenAgeValueFromKills() const

Defined in
CvPromotionClasses.cpp, line 1346
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetGoldenAgeValueFromKills

Hooks

static bool BeforeCvPromotionEntry_GetGoldenAgeValueFromKills(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetGoldenAgeValueFromKills(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetGoldenAgeValueFromKills(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetGoldenAgeValueFromKills>(host, &BeforeCvPromotionEntry_GetGoldenAgeValueFromKills);CivRegisterAfter<CivHooks::CvPromotionEntry_GetGoldenAgeValueFromKills>(host, &AfterCvPromotionEntry_GetGoldenAgeValueFromKills);CivRegisterReplace<CivHooks::CvPromotionEntry_GetGoldenAgeValueFromKills>(host, &ReplaceCvPromotionEntry_GetGoldenAgeValueFromKills);

Code

1345/// Accessor: percent of defeated enemy strenth awarded as points toward next Golden Age1346int CvPromotionEntry::GetGoldenAgeValueFromKills() const1347{1348	return m_iGoldenAgeValueFromKills;1349}

Called by