Bazaar developer reference

CvLuaUnit::lGetBaseCombatStrength(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2378
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lGetBaseCombatStrength

Hooks

static bool BeforeCvLuaUnit_lGetBaseCombatStrength(lua_State* L, int& result);static void AfterCvLuaUnit_lGetBaseCombatStrength(lua_State* L, int& result);static int ReplaceCvLuaUnit_lGetBaseCombatStrength(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lGetBaseCombatStrength>(host, &BeforeCvLuaUnit_lGetBaseCombatStrength);CivRegisterAfter<CivHooks::CvLuaUnit_lGetBaseCombatStrength>(host, &AfterCvLuaUnit_lGetBaseCombatStrength);CivRegisterReplace<CivHooks::CvLuaUnit_lGetBaseCombatStrength>(host, &ReplaceCvLuaUnit_lGetBaseCombatStrength);

Code

2377//int baseCombatStr();2378int CvLuaUnit::lGetBaseCombatStrength(lua_State* L)2379{2380	CvUnit* pkUnit = GetInstance(L);23812382	const int iResult = pkUnit->GetBaseCombatStrength();2383	lua_pushinteger(L, iResult);2384	return 1;2385}

Calls

Called by