Bazaar developer reference

CvLuaPlayer::lGetPolicyConversionModifier(lua_State *)

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

Code

10267int CvLuaPlayer::lGetPolicyConversionModifier(lua_State* L)10268{10269	const PolicyTypes iIndex = (PolicyTypes)lua_tointeger(L, 2);10270	CvPolicyEntry* pkPolicyInfo = GC.getPolicyInfo(iIndex);10271	CvAssertMsg(pkPolicyInfo, "pkPolicyInfo is null!");10272	if (!pkPolicyInfo)10273	{10274		return 0;10275	}1027610277	lua_pushinteger(L, pkPolicyInfo->GetConversionModifier());10278	return 1;10279}

Calls

Called by