Bazaar developer reference

CvLuaCity::lGetMilitaryProductionModifier(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2915
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetMilitaryProductionModifier

Hooks

static bool BeforeCvLuaCity_lGetMilitaryProductionModifier(lua_State* L, int& result);static void AfterCvLuaCity_lGetMilitaryProductionModifier(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetMilitaryProductionModifier(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetMilitaryProductionModifier>(host, &BeforeCvLuaCity_lGetMilitaryProductionModifier);CivRegisterAfter<CivHooks::CvLuaCity_lGetMilitaryProductionModifier>(host, &AfterCvLuaCity_lGetMilitaryProductionModifier);CivRegisterReplace<CivHooks::CvLuaCity_lGetMilitaryProductionModifier>(host, &ReplaceCvLuaCity_lGetMilitaryProductionModifier);

Code

2914//int getMilitaryProductionModifier();2915int CvLuaCity::lGetMilitaryProductionModifier(lua_State* L)2916{2917	CvCity* pkCity = GetInstance(L);2918	const int iResult = pkCity->getMilitaryProductionModifier();29192920	lua_pushinteger(L, iResult);2921	return 1;2922}

Calls

Called by