Bazaar developer reference

CvPromotionEntry::GetNeutralDamageChance() const

Defined in
CvPromotionClasses.cpp, line 1076
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetNeutralDamageChance

Hooks

static bool BeforeCvPromotionEntry_GetNeutralDamageChance(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetNeutralDamageChance(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetNeutralDamageChance(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetNeutralDamageChance>(host, &BeforeCvPromotionEntry_GetNeutralDamageChance);CivRegisterAfter<CivHooks::CvPromotionEntry_GetNeutralDamageChance>(host, &AfterCvPromotionEntry_GetNeutralDamageChance);CivRegisterReplace<CivHooks::CvPromotionEntry_GetNeutralDamageChance>(host, &ReplaceCvPromotionEntry_GetNeutralDamageChance);

Code

1075/// Accessor: Chance per turn to take damage in neutral lands1076int CvPromotionEntry::GetNeutralDamageChance() const1077{1078	return m_iNeutralDamageChance;1079}

Called by