CvLuaCity::lGetBaseYieldRateModifier(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 3293
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lGetBaseYieldRateModifier
Hooks
static bool BeforeCvLuaCity_lGetBaseYieldRateModifier(lua_State* L, int& result);static void AfterCvLuaCity_lGetBaseYieldRateModifier(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetBaseYieldRateModifier(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetBaseYieldRateModifier>(host, &BeforeCvLuaCity_lGetBaseYieldRateModifier);CivRegisterAfter<CivHooks::CvLuaCity_lGetBaseYieldRateModifier>(host, &AfterCvLuaCity_lGetBaseYieldRateModifier);CivRegisterReplace<CivHooks::CvLuaCity_lGetBaseYieldRateModifier>(host, &ReplaceCvLuaCity_lGetBaseYieldRateModifier);
Code
3292//int getBaseYieldRateModifier(YieldTypes eIndex, int iExtra = 0);3293int CvLuaCity::lGetBaseYieldRateModifier(lua_State* L)3294{3295 CvCity* pkCity = GetInstance(L);3296 const YieldTypes eIndex = (YieldTypes)lua_tointeger(L, 2);3297 const int iExtra = luaL_optint(L, 3, 0);3298 const int iResult = pkCity->getBaseYieldRateModifier(eIndex, iExtra);32993300 lua_pushinteger(L, iResult);3301 return 1;3302}
Calls
- CvCity::getBaseYieldRateModifier(YieldTypes, int, CvString *) const
CvLuaScopedInstance::GetInstancelua_pushintegerlua_tointegerluaL_optinteger