Bazaar developer reference

CvDiplomacyAI::GetResurrectedScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 23382
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetResurrectedScore

Hooks

static bool BeforeCvDiplomacyAI_GetResurrectedScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetResurrectedScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetResurrectedScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetResurrectedScore>(host, &BeforeCvDiplomacyAI_GetResurrectedScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetResurrectedScore>(host, &AfterCvDiplomacyAI_GetResurrectedScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetResurrectedScore>(host, &ReplaceCvDiplomacyAI_GetResurrectedScore);

Code

23382int CvDiplomacyAI::GetResurrectedScore(PlayerTypes ePlayer)23383{23384	int iOpinionWeight = 0;23385	if(WasResurrectedBy(ePlayer))23386		iOpinionWeight += (/*-200*/ GC.getOPINION_WEIGHT_RESURRECTED());23387	return iOpinionWeight;23388}

Calls

Called by