Bazaar developer reference

CvPolicyEntry::GetWoundedUnitDamageMod() const

Defined in
CvPolicyClasses.cpp, line 1719
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_GetWoundedUnitDamageMod

Hooks

static bool BeforeCvPolicyEntry_GetWoundedUnitDamageMod(const CvPolicyEntry* self, int& result);static void AfterCvPolicyEntry_GetWoundedUnitDamageMod(const CvPolicyEntry* self, int& result);static int ReplaceCvPolicyEntry_GetWoundedUnitDamageMod(int (*original)(const CvPolicyEntry*), const CvPolicyEntry* self);CivRegisterBefore<CivHooks::CvPolicyEntry_GetWoundedUnitDamageMod>(host, &BeforeCvPolicyEntry_GetWoundedUnitDamageMod);CivRegisterAfter<CivHooks::CvPolicyEntry_GetWoundedUnitDamageMod>(host, &AfterCvPolicyEntry_GetWoundedUnitDamageMod);CivRegisterReplace<CivHooks::CvPolicyEntry_GetWoundedUnitDamageMod>(host, &ReplaceCvPolicyEntry_GetWoundedUnitDamageMod);

Code

1718/// Mod to how much damage a Unit does when wounded1719int CvPolicyEntry::GetWoundedUnitDamageMod() const1720{1721	return m_iWoundedUnitDamageMod;1722}

Called by