Bazaar developer reference

CvPlayer::DoApplyNewAllyGPBonus()

Defined in
CvPlayer.cpp, line 14761
Class
CvPlayer
Hook name
CivHooks::CvPlayer_DoApplyNewAllyGPBonus

Hooks

static bool BeforeCvPlayer_DoApplyNewAllyGPBonus(CvPlayer* self);static void AfterCvPlayer_DoApplyNewAllyGPBonus(CvPlayer* self);static void ReplaceCvPlayer_DoApplyNewAllyGPBonus(void (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_DoApplyNewAllyGPBonus>(host, &BeforeCvPlayer_DoApplyNewAllyGPBonus);CivRegisterAfter<CivHooks::CvPlayer_DoApplyNewAllyGPBonus>(host, &AfterCvPlayer_DoApplyNewAllyGPBonus);CivRegisterReplace<CivHooks::CvPlayer_DoApplyNewAllyGPBonus>(host, &ReplaceCvPlayer_DoApplyNewAllyGPBonus);

Code

14760/// We're now allies with someone, what happens with the GP bonus?14761void CvPlayer::DoApplyNewAllyGPBonus()14762{14763	int iChange = /*-2*/ GC.getMINOR_ADDITIONAL_ALLIES_GP_CHANGE();14764	ChangeGreatPeopleSpawnCounter(iChange);1476514766	if(GetGreatPeopleSpawnCounter() < 1)14767		SetGreatPeopleSpawnCounter(1);14768}

Calls

Called by