Bazaar developer reference

CvCity::changeOverflowProductionTimes100(int)

Defined in
CvCity.cpp, line 9305
Class
CvCity
Hook name
CivHooks::CvCity_changeOverflowProductionTimes100

Hooks

static bool BeforeCvCity_changeOverflowProductionTimes100(CvCity* self, int iChange);static void AfterCvCity_changeOverflowProductionTimes100(CvCity* self, int iChange);static void ReplaceCvCity_changeOverflowProductionTimes100(void (*original)(CvCity*, int), CvCity* self, int iChange);CivRegisterBefore<CivHooks::CvCity_changeOverflowProductionTimes100>(host, &BeforeCvCity_changeOverflowProductionTimes100);CivRegisterAfter<CivHooks::CvCity_changeOverflowProductionTimes100>(host, &AfterCvCity_changeOverflowProductionTimes100);CivRegisterReplace<CivHooks::CvCity_changeOverflowProductionTimes100>(host, &ReplaceCvCity_changeOverflowProductionTimes100);

Code

9305void CvCity::changeOverflowProductionTimes100(int iChange)9306{9307	VALIDATE_OBJECT9308	CvAssertMsg(iChange >= 0, "Production overflow is too low.  Please send a save to Ed.");9309	CvAssertMsg(iChange < 25000, "Production overflow is too high.  Please send a save to Ed.");9310	setOverflowProductionTimes100(getOverflowProductionTimes100() + iChange);9311}

Calls

Called by