Bazaar developer reference

CvLuaPlayer::lGetProductionModifier(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 5907
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetProductionModifier

Hooks

static bool BeforeCvLuaPlayer_lGetProductionModifier(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetProductionModifier(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetProductionModifier(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetProductionModifier>(host, &BeforeCvLuaPlayer_lGetProductionModifier);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetProductionModifier>(host, &AfterCvLuaPlayer_lGetProductionModifier);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetProductionModifier>(host, &ReplaceCvLuaPlayer_lGetProductionModifier);

Code

5906//void GetProductionModifier();5907int CvLuaPlayer::lGetProductionModifier(lua_State* L)5908{5909	CvPlayerAI* pkPlayer = GetInstance(L);5910	lua_pushinteger(L, pkPlayer->getProductionModifier());5911	return 1;5912}

Calls

Called by