Bazaar developer reference

CvUnit::ChangeIgnoreGreatGeneralBenefitCount(int)

Defined in
CvUnit.cpp, line 19048
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeIgnoreGreatGeneralBenefitCount

Hooks

static bool BeforeCvUnit_ChangeIgnoreGreatGeneralBenefitCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeIgnoreGreatGeneralBenefitCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeIgnoreGreatGeneralBenefitCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeIgnoreGreatGeneralBenefitCount>(host, &BeforeCvUnit_ChangeIgnoreGreatGeneralBenefitCount);CivRegisterAfter<CivHooks::CvUnit_ChangeIgnoreGreatGeneralBenefitCount>(host, &AfterCvUnit_ChangeIgnoreGreatGeneralBenefitCount);CivRegisterReplace<CivHooks::CvUnit_ChangeIgnoreGreatGeneralBenefitCount>(host, &ReplaceCvUnit_ChangeIgnoreGreatGeneralBenefitCount);

Code

19048void CvUnit::ChangeIgnoreGreatGeneralBenefitCount(int iChange)19049{19050	m_iIgnoreGreatGeneralBenefit += iChange;19051}

Called by