Bazaar developer reference

CvPromotionEntry::GetUpgradeDiscount() const

Defined in
CvPromotionClasses.cpp, line 1298
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetUpgradeDiscount

Hooks

static bool BeforeCvPromotionEntry_GetUpgradeDiscount(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetUpgradeDiscount(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetUpgradeDiscount(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetUpgradeDiscount>(host, &BeforeCvPromotionEntry_GetUpgradeDiscount);CivRegisterAfter<CivHooks::CvPromotionEntry_GetUpgradeDiscount>(host, &AfterCvPromotionEntry_GetUpgradeDiscount);CivRegisterReplace<CivHooks::CvPromotionEntry_GetUpgradeDiscount>(host, &ReplaceCvPromotionEntry_GetUpgradeDiscount);

Code

1297/// Accessor: How much upgrading this unit is discounted1298int CvPromotionEntry::GetUpgradeDiscount() const1299{1300	return m_iUpgradeDiscount;1301}

Called by