Bazaar developer reference

CvLuaUnit::lGetGreatGeneralCombatModifier(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 4676
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lGetGreatGeneralCombatModifier

Hooks

static bool BeforeCvLuaUnit_lGetGreatGeneralCombatModifier(lua_State* L, int& result);static void AfterCvLuaUnit_lGetGreatGeneralCombatModifier(lua_State* L, int& result);static int ReplaceCvLuaUnit_lGetGreatGeneralCombatModifier(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lGetGreatGeneralCombatModifier>(host, &BeforeCvLuaUnit_lGetGreatGeneralCombatModifier);CivRegisterAfter<CivHooks::CvLuaUnit_lGetGreatGeneralCombatModifier>(host, &AfterCvLuaUnit_lGetGreatGeneralCombatModifier);CivRegisterReplace<CivHooks::CvLuaUnit_lGetGreatGeneralCombatModifier>(host, &ReplaceCvLuaUnit_lGetGreatGeneralCombatModifier);

Code

4675//bool GetGreatGeneralCombatModifier();4676int CvLuaUnit::lGetGreatGeneralCombatModifier(lua_State* L)4677{4678	CvUnit* pkUnit = GetInstance(L);46794680	const int bResult = pkUnit->GetGreatGeneralCombatModifier();4681	lua_pushinteger(L, bResult);4682	return 1;4683}

Calls

Called by