Bazaar developer reference

CvPlayer::ChangePlotGoldCostMod(int)

Defined in
CvPlayer.cpp, line 26569
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangePlotGoldCostMod

Hooks

static bool BeforeCvPlayer_ChangePlotGoldCostMod(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangePlotGoldCostMod(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangePlotGoldCostMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangePlotGoldCostMod>(host, &BeforeCvPlayer_ChangePlotGoldCostMod);CivRegisterAfter<CivHooks::CvPlayer_ChangePlotGoldCostMod>(host, &AfterCvPlayer_ChangePlotGoldCostMod);CivRegisterReplace<CivHooks::CvPlayer_ChangePlotGoldCostMod>(host, &ReplaceCvPlayer_ChangePlotGoldCostMod);

Code

26568/// Changes how much of a discount we have for Plot buying26569void CvPlayer::ChangePlotGoldCostMod(int iChange)26570{26571	if(iChange != 0)26572	{26573		m_iPlotGoldCostMod += iChange;26574	}26575}

Calls

Called by