Bazaar developer reference

CvPlayer::GetMinorFriendshipAnchorMod() const

Defined in
CvPlayer.cpp, line 16046
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetMinorFriendshipAnchorMod

Hooks

static bool BeforeCvPlayer_GetMinorFriendshipAnchorMod(const CvPlayer* self, int& result);static void AfterCvPlayer_GetMinorFriendshipAnchorMod(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetMinorFriendshipAnchorMod(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetMinorFriendshipAnchorMod>(host, &BeforeCvPlayer_GetMinorFriendshipAnchorMod);CivRegisterAfter<CivHooks::CvPlayer_GetMinorFriendshipAnchorMod>(host, &AfterCvPlayer_GetMinorFriendshipAnchorMod);CivRegisterReplace<CivHooks::CvPlayer_GetMinorFriendshipAnchorMod>(host, &ReplaceCvPlayer_GetMinorFriendshipAnchorMod);

Code

16044/// What is the general modifier we get towards the resting Influence point with a city-state? (ex. Social Policies)16045/// NOTE: This does not include situation-dependent modifiers (ex. religion or warmongering), which are handled in CvMinorCivAI16046int CvPlayer::GetMinorFriendshipAnchorMod() const16047{16048	return m_iMinorFriendshipMinimum;16049}

Calls

Called by