Bazaar developer reference

CvCity::changeOverflowProduction(int)

Defined in
CvCity.cpp, line 9278
Class
CvCity
Hook name
CivHooks::CvCity_changeOverflowProduction

Hooks

static bool BeforeCvCity_changeOverflowProduction(CvCity* self, int iChange);static void AfterCvCity_changeOverflowProduction(CvCity* self, int iChange);static void ReplaceCvCity_changeOverflowProduction(void (*original)(CvCity*, int), CvCity* self, int iChange);CivRegisterBefore<CivHooks::CvCity_changeOverflowProduction>(host, &BeforeCvCity_changeOverflowProduction);CivRegisterAfter<CivHooks::CvCity_changeOverflowProduction>(host, &AfterCvCity_changeOverflowProduction);CivRegisterReplace<CivHooks::CvCity_changeOverflowProduction>(host, &ReplaceCvCity_changeOverflowProduction);

Code

9278void CvCity::changeOverflowProduction(int iChange)9279{9280	VALIDATE_OBJECT9281	CvAssertMsg(iChange >= 0, "Production overflow is too low.  Please send a save to Ed.");9282	CvAssertMsg(iChange < 250, "Production overflow is too high.  Please send a save to Ed.");9283	changeOverflowProductionTimes100(iChange * 100);9284}

Calls

Called by