Bazaar developer reference

CvLuaUnit::lIsEverFortifyable(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2799
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsEverFortifyable

Hooks

static bool BeforeCvLuaUnit_lIsEverFortifyable(lua_State* L, int& result);static void AfterCvLuaUnit_lIsEverFortifyable(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsEverFortifyable(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsEverFortifyable>(host, &BeforeCvLuaUnit_lIsEverFortifyable);CivRegisterAfter<CivHooks::CvLuaUnit_lIsEverFortifyable>(host, &AfterCvLuaUnit_lIsEverFortifyable);CivRegisterReplace<CivHooks::CvLuaUnit_lIsEverFortifyable>(host, &ReplaceCvLuaUnit_lIsEverFortifyable);

Code

2799int CvLuaUnit::lIsEverFortifyable(lua_State* L)2800{2801	CvUnit* pkUnit = GetInstance(L);2802	const bool bResult = pkUnit->IsEverFortifyable();28032804	lua_pushboolean(L, bResult);2805	return 1;2806}

Calls

Called by