Bazaar developer reference

CvPromotionEntry::GetEnemyDamageChance() const

Defined in
CvPromotionClasses.cpp, line 1070
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetEnemyDamageChance

Hooks

static bool BeforeCvPromotionEntry_GetEnemyDamageChance(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetEnemyDamageChance(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetEnemyDamageChance(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetEnemyDamageChance>(host, &BeforeCvPromotionEntry_GetEnemyDamageChance);CivRegisterAfter<CivHooks::CvPromotionEntry_GetEnemyDamageChance>(host, &AfterCvPromotionEntry_GetEnemyDamageChance);CivRegisterReplace<CivHooks::CvPromotionEntry_GetEnemyDamageChance>(host, &ReplaceCvPromotionEntry_GetEnemyDamageChance);

Code

1069/// Accessor: Chance per turn to take damage in enemy lands1070int CvPromotionEntry::GetEnemyDamageChance() const1071{1072	return m_iEnemyDamageChance;1073}

Called by