CvMinorCivAI::ChangeFriendshipWithMajor(PlayerTypes, int, bool)
- Defined in
- CvMinorCivAI.cpp, line 6335
- Class
- CvMinorCivAI
- Hook name
CivHooks::CvMinorCivAI_ChangeFriendshipWithMajor
Hooks
static bool BeforeCvMinorCivAI_ChangeFriendshipWithMajor(CvMinorCivAI* self, PlayerTypes ePlayer, int iChange, bool bFromQuest);static void AfterCvMinorCivAI_ChangeFriendshipWithMajor(CvMinorCivAI* self, PlayerTypes ePlayer, int iChange, bool bFromQuest);static void ReplaceCvMinorCivAI_ChangeFriendshipWithMajor(void (*original)(CvMinorCivAI*, PlayerTypes, int, bool), CvMinorCivAI* self, PlayerTypes ePlayer, int iChange, bool bFromQuest);CivRegisterBefore<CivHooks::CvMinorCivAI_ChangeFriendshipWithMajor>(host, &BeforeCvMinorCivAI_ChangeFriendshipWithMajor);CivRegisterAfter<CivHooks::CvMinorCivAI_ChangeFriendshipWithMajor>(host, &AfterCvMinorCivAI_ChangeFriendshipWithMajor);CivRegisterReplace<CivHooks::CvMinorCivAI_ChangeFriendshipWithMajor>(host, &ReplaceCvMinorCivAI_ChangeFriendshipWithMajor);
Code
6334/// Changes the base level of Friendship between this Minor and the specified Major Civ6335void CvMinorCivAI::ChangeFriendshipWithMajor(PlayerTypes ePlayer, int iChange, bool bFromQuest)6336{6337 ChangeFriendshipWithMajorTimes100(ePlayer, iChange * 100, bFromQuest);6338}
Calls
Called by
- CvPlayerCulture::DoArchaeologyChoice(ArchaeologyChoiceType)
- CvMinorCivAI::DoElection()
- CvMinorCivAI::DoFirstContactWithMajor(TeamTypes, bool)
- CvMinorCivAI::DoGoldGiftFromMajor(PlayerTypes, int)
- CvMinorCivAI::DoIntrusion()
- CvMinorCivAI::DoThreateningBarbKilled(PlayerTypes, int, int)
- CvMinorCivAI::DoUnitGiftFromMajor(PlayerTypes, CvUnit *, bool)
- CvMinorCivQuest::DoFinishQuest()
- CvPlayer::DoCivilianReturnLogic(bool, PlayerTypes, int)
- CvUnit::PerformCultureBomb(int)
- CvUnit::trade()
- CvLeague::DoProjectReward(PlayerTypes, LeagueProjectTypes, ContributionTier)
- CvLuaPlayer::lChangeMinorCivFriendshipWithMajor(lua_State *)