Bazaar developer reference

CvMinorCivAI::SetFriendshipWithMajor(PlayerTypes, int, bool)

Defined in
CvMinorCivAI.cpp, line 6329
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_SetFriendshipWithMajor

Hooks

static bool BeforeCvMinorCivAI_SetFriendshipWithMajor(CvMinorCivAI* self, PlayerTypes ePlayer, int iNum, bool bFromQuest);static void AfterCvMinorCivAI_SetFriendshipWithMajor(CvMinorCivAI* self, PlayerTypes ePlayer, int iNum, bool bFromQuest);static void ReplaceCvMinorCivAI_SetFriendshipWithMajor(void (*original)(CvMinorCivAI*, PlayerTypes, int, bool), CvMinorCivAI* self, PlayerTypes ePlayer, int iNum, bool bFromQuest);CivRegisterBefore<CivHooks::CvMinorCivAI_SetFriendshipWithMajor>(host, &BeforeCvMinorCivAI_SetFriendshipWithMajor);CivRegisterAfter<CivHooks::CvMinorCivAI_SetFriendshipWithMajor>(host, &AfterCvMinorCivAI_SetFriendshipWithMajor);CivRegisterReplace<CivHooks::CvMinorCivAI_SetFriendshipWithMajor>(host, &ReplaceCvMinorCivAI_SetFriendshipWithMajor);

Code

6328/// Sets the base level of Friendship between this Minor and the specified Major Civ6329void CvMinorCivAI::SetFriendshipWithMajor(PlayerTypes ePlayer, int iNum, bool bFromQuest)6330{6331	SetFriendshipWithMajorTimes100(ePlayer, iNum * 100, bFromQuest);6332}

Calls

Called by