Bazaar developer reference

CvUnit::ChangeInterceptionCombatModifier(int)

Defined in
CvUnit.cpp, line 15063
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeInterceptionCombatModifier

Hooks

static bool BeforeCvUnit_ChangeInterceptionCombatModifier(CvUnit* self, int iValue);static void AfterCvUnit_ChangeInterceptionCombatModifier(CvUnit* self, int iValue);static void ReplaceCvUnit_ChangeInterceptionCombatModifier(void (*original)(CvUnit*, int), CvUnit* self, int iValue);CivRegisterBefore<CivHooks::CvUnit_ChangeInterceptionCombatModifier>(host, &BeforeCvUnit_ChangeInterceptionCombatModifier);CivRegisterAfter<CivHooks::CvUnit_ChangeInterceptionCombatModifier>(host, &AfterCvUnit_ChangeInterceptionCombatModifier);CivRegisterReplace<CivHooks::CvUnit_ChangeInterceptionCombatModifier>(host, &ReplaceCvUnit_ChangeInterceptionCombatModifier);

Code

15063void CvUnit::ChangeInterceptionCombatModifier(int iValue)15064{15065	VALIDATE_OBJECT15066	if(iValue != 0)15067	{15068		m_iInterceptionCombatModifier += iValue;15069	}15070}

Calls

Called by