Bazaar developer reference

CvLuaPlayer::lGetNegativeReligiousConversionPoints(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8538
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetNegativeReligiousConversionPoints

Hooks

static bool BeforeCvLuaPlayer_lGetNegativeReligiousConversionPoints(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNegativeReligiousConversionPoints(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNegativeReligiousConversionPoints(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNegativeReligiousConversionPoints>(host, &BeforeCvLuaPlayer_lGetNegativeReligiousConversionPoints);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNegativeReligiousConversionPoints>(host, &AfterCvLuaPlayer_lGetNegativeReligiousConversionPoints);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNegativeReligiousConversionPoints>(host, &ReplaceCvLuaPlayer_lGetNegativeReligiousConversionPoints);

Code

8538int CvLuaPlayer::lGetNegativeReligiousConversionPoints(lua_State* L)8539{8540	CvPlayerAI* pkPlayer = GetInstance(L);8541	PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);85428543	const int iValue = pkPlayer->GetDiplomacyAI()->GetNegativeReligiousConversionPoints(eOtherPlayer);85448545	lua_pushinteger(L, iValue);8546	return 1;8547}

Calls

Called by