Bazaar developer reference

CvPlayer::changeMaxConscript(int)

Defined in
CvPlayer.cpp, line 15886
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeMaxConscript

Hooks

static bool BeforeCvPlayer_changeMaxConscript(CvPlayer* self, int iChange);static void AfterCvPlayer_changeMaxConscript(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeMaxConscript(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeMaxConscript>(host, &BeforeCvPlayer_changeMaxConscript);CivRegisterAfter<CivHooks::CvPlayer_changeMaxConscript>(host, &AfterCvPlayer_changeMaxConscript);CivRegisterReplace<CivHooks::CvPlayer_changeMaxConscript>(host, &ReplaceCvPlayer_changeMaxConscript);

Code

15886void CvPlayer::changeMaxConscript(int iChange)15887{15888	m_iMaxConscript = (m_iMaxConscript + iChange);15889	CvAssert(getMaxConscript() >= 0);15890}

Calls

Called by