Bazaar developer reference

CvPromotionEntry::GetRoughRangedAttackMod() const

Defined in
CvPromotionClasses.cpp, line 1148
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetRoughRangedAttackMod

Hooks

static bool BeforeCvPromotionEntry_GetRoughRangedAttackMod(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetRoughRangedAttackMod(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetRoughRangedAttackMod(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetRoughRangedAttackMod>(host, &BeforeCvPromotionEntry_GetRoughRangedAttackMod);CivRegisterAfter<CivHooks::CvPromotionEntry_GetRoughRangedAttackMod>(host, &AfterCvPromotionEntry_GetRoughRangedAttackMod);CivRegisterReplace<CivHooks::CvPromotionEntry_GetRoughRangedAttackMod>(host, &ReplaceCvPromotionEntry_GetRoughRangedAttackMod);

Code

1147/// Accessor: Bonus rough terrain ranged attack mod1148int CvPromotionEntry::GetRoughRangedAttackMod() const1149{1150	return m_iRoughRangedAttackMod;1151}

Called by