Bazaar developer reference

CvPlayer::ChangeAllFeatureProduction(int)

Defined in
CvPlayer.cpp, line 9616
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeAllFeatureProduction

Hooks

static bool BeforeCvPlayer_ChangeAllFeatureProduction(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeAllFeatureProduction(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeAllFeatureProduction(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeAllFeatureProduction>(host, &BeforeCvPlayer_ChangeAllFeatureProduction);CivRegisterAfter<CivHooks::CvPlayer_ChangeAllFeatureProduction>(host, &AfterCvPlayer_ChangeAllFeatureProduction);CivRegisterReplace<CivHooks::CvPlayer_ChangeAllFeatureProduction>(host, &ReplaceCvPlayer_ChangeAllFeatureProduction);

Code

9615/// Changes how much Production we get from removing ANY Feature in the game (Policy Bonus)9616void CvPlayer::ChangeAllFeatureProduction(int iChange)9617{9618	if(iChange != 0)9619	{9620		m_iAllFeatureProduction += iChange;9621	}9622}

Calls

Called by