Bazaar developer reference

CvCity::changeMilitaryProductionModifier(int)

Defined in
CvCity.cpp, line 9348
Class
CvCity
Hook name
CivHooks::CvCity_changeMilitaryProductionModifier

Hooks

static bool BeforeCvCity_changeMilitaryProductionModifier(CvCity* self, int iChange);static void AfterCvCity_changeMilitaryProductionModifier(CvCity* self, int iChange);static void ReplaceCvCity_changeMilitaryProductionModifier(void (*original)(CvCity*, int), CvCity* self, int iChange);CivRegisterBefore<CivHooks::CvCity_changeMilitaryProductionModifier>(host, &BeforeCvCity_changeMilitaryProductionModifier);CivRegisterAfter<CivHooks::CvCity_changeMilitaryProductionModifier>(host, &AfterCvCity_changeMilitaryProductionModifier);CivRegisterReplace<CivHooks::CvCity_changeMilitaryProductionModifier>(host, &ReplaceCvCity_changeMilitaryProductionModifier);

Code

9348void CvCity::changeMilitaryProductionModifier(int iChange)9349{9350	VALIDATE_OBJECT9351	m_iMilitaryProductionModifier = (m_iMilitaryProductionModifier + iChange);9352}

Calls

Called by