Bazaar developer reference

CvMinorCivAI::GetFriendsThreshold() const

Defined in
CvMinorCivAI.cpp, line 6911
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_GetFriendsThreshold

Hooks

static bool BeforeCvMinorCivAI_GetFriendsThreshold(const CvMinorCivAI* self, int& result);static void AfterCvMinorCivAI_GetFriendsThreshold(const CvMinorCivAI* self, int& result);static int ReplaceCvMinorCivAI_GetFriendsThreshold(int (*original)(const CvMinorCivAI*), const CvMinorCivAI* self);CivRegisterBefore<CivHooks::CvMinorCivAI_GetFriendsThreshold>(host, &BeforeCvMinorCivAI_GetFriendsThreshold);CivRegisterAfter<CivHooks::CvMinorCivAI_GetFriendsThreshold>(host, &AfterCvMinorCivAI_GetFriendsThreshold);CivRegisterReplace<CivHooks::CvMinorCivAI_GetFriendsThreshold>(host, &ReplaceCvMinorCivAI_GetFriendsThreshold);

Code

6910/// What is the friends threshold?6911int CvMinorCivAI::GetFriendsThreshold() const6912{6913	return /*30*/ GC.getFRIENDSHIP_THRESHOLD_FRIENDS();6914}

Calls

Called by