Bazaar developer reference

CvLuaGame::lEnhancePantheon(lua_State *)

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

Code

2563int CvLuaGame::lEnhancePantheon(lua_State* L)2564{2565	const PlayerTypes ePlayer = static_cast<PlayerTypes>(luaL_checkint(L, 1));2566	const BeliefTypes eBelief = static_cast<BeliefTypes>(luaL_checkint(L, 2));2567	const bool bNotify = luaL_optbool(L, 3, true);2568	2569	// If this player has created a (local) religion, we need to enhance that instead!2570	ReligionTypes eReligion = GC.getGame().GetGameReligions()->GetReligionCreatedByPlayer(ePlayer);2571	if (eReligion == NO_RELIGION) eReligion = RELIGION_PANTHEON;25722573	GC.getGame().GetGameReligions()->EnhanceReligion(ePlayer, eReligion, eBelief, NO_BELIEF, bNotify);25742575	return 0;2576}

Calls

Called by