Bazaar developer reference

CvCity::getExtraProductionDifference(int, int) const

Defined in
CvCity.cpp, line 5918
Class
CvCity
Hook name
CivHooks::CvCity_getExtraProductionDifference_with_int_int_const

Hooks

static bool BeforeCvCity_getExtraProductionDifference_with_int_int_const(const CvCity* self, int iExtra, int iModifier, int& result);static void AfterCvCity_getExtraProductionDifference_with_int_int_const(const CvCity* self, int iExtra, int iModifier, int& result);static int ReplaceCvCity_getExtraProductionDifference_with_int_int_const(int (*original)(const CvCity*, int, int), const CvCity* self, int iExtra, int iModifier);CivRegisterBefore<CivHooks::CvCity_getExtraProductionDifference_with_int_int_const>(host, &BeforeCvCity_getExtraProductionDifference_with_int_int_const);CivRegisterAfter<CivHooks::CvCity_getExtraProductionDifference_with_int_int_const>(host, &AfterCvCity_getExtraProductionDifference_with_int_int_const);CivRegisterReplace<CivHooks::CvCity_getExtraProductionDifference_with_int_int_const>(host, &ReplaceCvCity_getExtraProductionDifference_with_int_int_const);

Code

5918int CvCity::getExtraProductionDifference(int iExtra, int iModifier) const5919{5920	VALIDATE_OBJECT5921	return ((iExtra * getBaseYieldRateModifier(YIELD_PRODUCTION, iModifier)) / 100);5922}

Calls

Called by