Bazaar developer reference

CvLuaCity::lChangeSpecialistGreatPersonProgressTimes100(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3665
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lChangeSpecialistGreatPersonProgressTimes100

Hooks

static bool BeforeCvLuaCity_lChangeSpecialistGreatPersonProgressTimes100(lua_State* L, int& result);static void AfterCvLuaCity_lChangeSpecialistGreatPersonProgressTimes100(lua_State* L, int& result);static int ReplaceCvLuaCity_lChangeSpecialistGreatPersonProgressTimes100(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lChangeSpecialistGreatPersonProgressTimes100>(host, &BeforeCvLuaCity_lChangeSpecialistGreatPersonProgressTimes100);CivRegisterAfter<CivHooks::CvLuaCity_lChangeSpecialistGreatPersonProgressTimes100>(host, &AfterCvLuaCity_lChangeSpecialistGreatPersonProgressTimes100);CivRegisterReplace<CivHooks::CvLuaCity_lChangeSpecialistGreatPersonProgressTimes100>(host, &ReplaceCvLuaCity_lChangeSpecialistGreatPersonProgressTimes100);

Code

3664//int ChangeSpecialistGreatPersonProgressTimes100(SpecialistTypes eIndex, int iChange);3665int CvLuaCity::lChangeSpecialistGreatPersonProgressTimes100(lua_State* L)3666{3667	CvCity* pkCity = GetInstance(L);3668	const int iIndex = lua_tointeger(L, 2);3669	const int iChange = lua_tointeger(L, 3);3670	pkCity->GetCityCitizens()->ChangeSpecialistGreatPersonProgressTimes100(toValue<SpecialistTypes>(L, 2), iChange);36713672	return 1;3673}

Calls

Called by