Bazaar developer reference

CvCity::SetCheapestPlotInfluence(int)

Defined in
CvCity.cpp, line 12742
Class
CvCity
Hook name
CivHooks::CvCity_SetCheapestPlotInfluence

Hooks

static bool BeforeCvCity_SetCheapestPlotInfluence(CvCity* self, int iValue);static void AfterCvCity_SetCheapestPlotInfluence(CvCity* self, int iValue);static void ReplaceCvCity_SetCheapestPlotInfluence(void (*original)(CvCity*, int), CvCity* self, int iValue);CivRegisterBefore<CivHooks::CvCity_SetCheapestPlotInfluence>(host, &BeforeCvCity_SetCheapestPlotInfluence);CivRegisterAfter<CivHooks::CvCity_SetCheapestPlotInfluence>(host, &AfterCvCity_SetCheapestPlotInfluence);CivRegisterReplace<CivHooks::CvCity_SetCheapestPlotInfluence>(host, &ReplaceCvCity_SetCheapestPlotInfluence);

Code

12741/// What is the cheapest plot we can get12742void CvCity::SetCheapestPlotInfluence(int iValue)12743{12744	if(m_iCheapestPlotInfluence != iValue)12745		m_iCheapestPlotInfluence = iValue;1274612747	CvAssertMsg(m_iCheapestPlotInfluence > 0, "Cheapest plot influence should never be 0 or less.");12748}

Calls

Called by