Bazaar developer reference

CvCity::changeSpecialistProductionTimes100(SpecialistTypes, int)

Defined in
CvCity.cpp, line 11486
Class
CvCity
Hook name
CivHooks::CvCity_changeSpecialistProductionTimes100

Hooks

static bool BeforeCvCity_changeSpecialistProductionTimes100(CvCity* self, SpecialistTypes eIndex, int iChange);static void AfterCvCity_changeSpecialistProductionTimes100(CvCity* self, SpecialistTypes eIndex, int iChange);static void ReplaceCvCity_changeSpecialistProductionTimes100(void (*original)(CvCity*, SpecialistTypes, int), CvCity* self, SpecialistTypes eIndex, int iChange);CivRegisterBefore<CivHooks::CvCity_changeSpecialistProductionTimes100>(host, &BeforeCvCity_changeSpecialistProductionTimes100);CivRegisterAfter<CivHooks::CvCity_changeSpecialistProductionTimes100>(host, &AfterCvCity_changeSpecialistProductionTimes100);CivRegisterReplace<CivHooks::CvCity_changeSpecialistProductionTimes100>(host, &ReplaceCvCity_changeSpecialistProductionTimes100);

Code

11486void CvCity::changeSpecialistProductionTimes100(SpecialistTypes eIndex, int iChange)11487{11488	VALIDATE_OBJECT11489	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");11490	CvAssertMsg(eIndex < GC.getNumSpecialistInfos(), "eIndex expected to be < GC.getNumSpecialistInfos()");11491	setSpecialistProductionTimes100(eIndex, (getSpecialistProductionTimes100(eIndex) + iChange));11492}

Calls

Called by