Bazaar developer reference

CvPlayer::changeMilitaryProductionModifier(int)

Defined in
CvPlayer.cpp, line 15199
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeMilitaryProductionModifier

Hooks

static bool BeforeCvPlayer_changeMilitaryProductionModifier(CvPlayer* self, int iChange);static void AfterCvPlayer_changeMilitaryProductionModifier(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeMilitaryProductionModifier(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeMilitaryProductionModifier>(host, &BeforeCvPlayer_changeMilitaryProductionModifier);CivRegisterAfter<CivHooks::CvPlayer_changeMilitaryProductionModifier>(host, &AfterCvPlayer_changeMilitaryProductionModifier);CivRegisterReplace<CivHooks::CvPlayer_changeMilitaryProductionModifier>(host, &ReplaceCvPlayer_changeMilitaryProductionModifier);

Code

15199void CvPlayer::changeMilitaryProductionModifier(int iChange)15200{15201	m_iMilitaryProductionModifier = (m_iMilitaryProductionModifier + iChange);15202}

Calls

Called by