Bazaar developer reference

CvLuaCity::lGetProjectProductionModifier(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1585
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetProjectProductionModifier

Hooks

static bool BeforeCvLuaCity_lGetProjectProductionModifier(lua_State* L, int& result);static void AfterCvLuaCity_lGetProjectProductionModifier(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetProjectProductionModifier(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetProjectProductionModifier>(host, &BeforeCvLuaCity_lGetProjectProductionModifier);CivRegisterAfter<CivHooks::CvLuaCity_lGetProjectProductionModifier>(host, &AfterCvLuaCity_lGetProjectProductionModifier);CivRegisterReplace<CivHooks::CvLuaCity_lGetProjectProductionModifier>(host, &ReplaceCvLuaCity_lGetProjectProductionModifier);

Code

1584//int getProjectProductionModifier(ProjectTypes eProject);1585int CvLuaCity::lGetProjectProductionModifier(lua_State* L)1586{1587	CvCity* pkCity = GetInstance(L);1588	const ProjectTypes eProject = (ProjectTypes)lua_tointeger(L, 2);1589	const int iResult = pkCity->getProductionModifier(eProject);15901591	lua_pushinteger(L, iResult);1592	return 1;1593}

Calls

Called by