Bazaar developer reference

CvDiplomacyAI::GetTimesCultureBombedScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 23449
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetTimesCultureBombedScore

Hooks

static bool BeforeCvDiplomacyAI_GetTimesCultureBombedScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetTimesCultureBombedScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetTimesCultureBombedScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetTimesCultureBombedScore>(host, &BeforeCvDiplomacyAI_GetTimesCultureBombedScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetTimesCultureBombedScore>(host, &AfterCvDiplomacyAI_GetTimesCultureBombedScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetTimesCultureBombedScore>(host, &ReplaceCvDiplomacyAI_GetTimesCultureBombedScore);

Code

23449int CvDiplomacyAI::GetTimesCultureBombedScore(PlayerTypes ePlayer)23450{23451	int iOpinionWeight = 0;23452	if(GetNumTimesCultureBombed(ePlayer) > 0)23453		iOpinionWeight += (GetNumTimesCultureBombed(ePlayer) * /*30*/ GC.getOPINION_WEIGHT_CULTURE_BOMBED());23454	return iOpinionWeight;23455}

Calls

Called by