CvMinorCivAI::GetBaseFriendshipWithMajor(PlayerTypes) const
- Defined in
- CvMinorCivAI.cpp, line 6323
- Class
- CvMinorCivAI
- Hook name
CivHooks::CvMinorCivAI_GetBaseFriendshipWithMajor
Hooks
static bool BeforeCvMinorCivAI_GetBaseFriendshipWithMajor(const CvMinorCivAI* self, PlayerTypes ePlayer, int& result);static void AfterCvMinorCivAI_GetBaseFriendshipWithMajor(const CvMinorCivAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvMinorCivAI_GetBaseFriendshipWithMajor(int (*original)(const CvMinorCivAI*, PlayerTypes), const CvMinorCivAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvMinorCivAI_GetBaseFriendshipWithMajor>(host, &BeforeCvMinorCivAI_GetBaseFriendshipWithMajor);CivRegisterAfter<CivHooks::CvMinorCivAI_GetBaseFriendshipWithMajor>(host, &AfterCvMinorCivAI_GetBaseFriendshipWithMajor);CivRegisterReplace<CivHooks::CvMinorCivAI_GetBaseFriendshipWithMajor>(host, &ReplaceCvMinorCivAI_GetBaseFriendshipWithMajor);
Code
6322// What is the raw, stored level of Friendship between this Minor and the requested Major Civ?6323int CvMinorCivAI::GetBaseFriendshipWithMajor(PlayerTypes ePlayer) const6324{6325 return GetBaseFriendshipWithMajorTimes100(ePlayer) / 100;6326}
Calls
Called by
- CvMinorCivAI::DoChangeAliveStatus(bool)
- CvMinorCivAI::DoFriendship()
- CvMinorCivAI::DoLiberationByMajor(PlayerTypes, TeamTypes)
- CvMinorCivAI::DoNowAtWarWithTeam(TeamTypes)
- CvMinorCivAI::DoNowPeaceWithTeam(TeamTypes)
- CvMinorCivAI::GetFriendshipChangePerTurnTimes100(PlayerTypes)
- CvMinorCivAI::SetFriendshipWithMajorTimes100(PlayerTypes, int, bool)
- CvActiveResolution::DoEffects(PlayerTypes)