Bazaar developer reference

CvLuaGame::lDoMinorBullyGold(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 1852
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lDoMinorBullyGold

Hooks

static bool BeforeCvLuaGame_lDoMinorBullyGold(lua_State* L, int& result);static void AfterCvLuaGame_lDoMinorBullyGold(lua_State* L, int& result);static int ReplaceCvLuaGame_lDoMinorBullyGold(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lDoMinorBullyGold>(host, &BeforeCvLuaGame_lDoMinorBullyGold);CivRegisterAfter<CivHooks::CvLuaGame_lDoMinorBullyGold>(host, &AfterCvLuaGame_lDoMinorBullyGold);CivRegisterReplace<CivHooks::CvLuaGame_lDoMinorBullyGold>(host, &ReplaceCvLuaGame_lDoMinorBullyGold);

Code

1851//void DoMinorBullyGold(int iBullyCivID, int iMinorCivID);1852int CvLuaGame::lDoMinorBullyGold(lua_State* L)1853{1854	const int iBully = lua_tointeger(L, 1);1855	const int iMinor = lua_tointeger(L, 2);1856	GC.getGame().DoMinorBullyGold((PlayerTypes)iBully, (PlayerTypes)iMinor);18571858	return 1;1859}

Calls

Called by