Bazaar developer reference

CvDiplomacyAI::GetAngryAboutSidedWithProtectedMinorScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 23861
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore

Hooks

static bool BeforeCvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore>(host, &BeforeCvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore>(host, &AfterCvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore>(host, &ReplaceCvDiplomacyAI_GetAngryAboutSidedWithProtectedMinorScore);

Code

23861int CvDiplomacyAI::GetAngryAboutSidedWithProtectedMinorScore(PlayerTypes ePlayer)23862{23863	int iOpinionWeight = 0;23864	if (IsAngryAboutSidedWithTheirProtectedMinor(ePlayer))23865	{23866		iOpinionWeight += /*5*/ GC.getOPINION_WEIGHT_SIDED_WITH_THEIR_MINOR();23867	}23868	return iOpinionWeight;23869}

Calls

Called by