Bazaar developer reference

CvLuaUnit::lChangeExperienceTimes100(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 3916
Class
CvLuaUnit
Not a hook point
member without a separate declaration

Code

3915//void changeExperience(int iChange, int iMax = -1, bool bFromCombat = false, bool bInBorders = false, bool bUpdateGlobal = false);3916int CvLuaUnit::lChangeExperienceTimes100(lua_State* L)3917{3918	CvUnit* pkUnit = GetInstance(L);3919	const int iChangeTimes100 = lua_tointeger(L, 2);3920	const int iMax = luaL_optint(L, 3, -1);3921	const bool bFromCombat = luaL_optint(L, 4, 0);3922	const bool bInBorders = luaL_optint(L, 5, 0);3923	const bool bUpdateGlobal = luaL_optint(L, 6, 0);39243925	pkUnit->changeExperienceTimes100(iChangeTimes100, iMax, bFromCombat, bInBorders, bUpdateGlobal);3926	return 0;3927}

Calls

Called by