Bazaar developer reference

CvLuaUnit::lGetBaseRangedCombatStrength(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2585
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lGetBaseRangedCombatStrength

Hooks

static bool BeforeCvLuaUnit_lGetBaseRangedCombatStrength(lua_State* L, int& result);static void AfterCvLuaUnit_lGetBaseRangedCombatStrength(lua_State* L, int& result);static int ReplaceCvLuaUnit_lGetBaseRangedCombatStrength(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lGetBaseRangedCombatStrength>(host, &BeforeCvLuaUnit_lGetBaseRangedCombatStrength);CivRegisterAfter<CivHooks::CvLuaUnit_lGetBaseRangedCombatStrength>(host, &AfterCvLuaUnit_lGetBaseRangedCombatStrength);CivRegisterReplace<CivHooks::CvLuaUnit_lGetBaseRangedCombatStrength>(host, &ReplaceCvLuaUnit_lGetBaseRangedCombatStrength);

Code

2584//int airBaseCombatStr();2585int CvLuaUnit::lGetBaseRangedCombatStrength(lua_State* L)2586{2587	CvUnit* pkUnit = GetInstance(L);25882589	const int iResult = pkUnit->GetBaseRangedCombatStrength();2590	lua_pushinteger(L, iResult);2591	return 1;2592}

Calls

Called by