Bazaar developer reference

CvDiplomacyAI::GetPaidTributeToScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 24089
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetPaidTributeToScore

Hooks

static bool BeforeCvDiplomacyAI_GetPaidTributeToScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetPaidTributeToScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetPaidTributeToScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetPaidTributeToScore>(host, &BeforeCvDiplomacyAI_GetPaidTributeToScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetPaidTributeToScore>(host, &AfterCvDiplomacyAI_GetPaidTributeToScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetPaidTributeToScore>(host, &ReplaceCvDiplomacyAI_GetPaidTributeToScore);

Code

24089int CvDiplomacyAI::GetPaidTributeToScore(PlayerTypes ePlayer)24090{24091	int iOpinionWeight = 0;24092	if (IsHasPaidTributeTo(ePlayer))24093		iOpinionWeight += /*30*/ GC.getOPINION_WEIGHT_PAID_TRIBUTE();24094	return iOpinionWeight;24095}

Calls

Called by