Bazaar developer reference

CvPlayer::SetCapitalGrowthMod(int)

Defined in
CvPlayer.cpp, line 26496
Class
CvPlayer
Hook name
CivHooks::CvPlayer_SetCapitalGrowthMod

Hooks

static bool BeforeCvPlayer_SetCapitalGrowthMod(CvPlayer* self, int iValue);static void AfterCvPlayer_SetCapitalGrowthMod(CvPlayer* self, int iValue);static void ReplaceCvPlayer_SetCapitalGrowthMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iValue);CivRegisterBefore<CivHooks::CvPlayer_SetCapitalGrowthMod>(host, &BeforeCvPlayer_SetCapitalGrowthMod);CivRegisterAfter<CivHooks::CvPlayer_SetCapitalGrowthMod>(host, &AfterCvPlayer_SetCapitalGrowthMod);CivRegisterReplace<CivHooks::CvPlayer_SetCapitalGrowthMod>(host, &ReplaceCvPlayer_SetCapitalGrowthMod);

Code

26495/// Sets Capital growth percent mod (i.e. 100 = foodDifference doubled)26496void CvPlayer::SetCapitalGrowthMod(int iValue)26497{26498	CvAssert(iValue >= 0);26499	m_iCapitalGrowthMod = iValue;26500}

Calls

Called by