Bazaar developer reference

CvDiplomacyAI::ChangeOtherPlayerNumMinorsConquered(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 10207
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered

Hooks

static bool BeforeCvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void AfterCvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void ReplaceCvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered>(host, &BeforeCvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered>(host, &AfterCvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered>(host, &ReplaceCvDiplomacyAI_ChangeOtherPlayerNumMinorsConquered);

Code

10206/// Changes how many Minors have we seen this Player conquer10207void CvDiplomacyAI::ChangeOtherPlayerNumMinorsConquered(PlayerTypes ePlayer, int iChange)10208{10209	SetOtherPlayerNumMinorsConquered(ePlayer, GetOtherPlayerNumMinorsConquered(ePlayer) + iChange);10210	//ChangeOtherPlayerWarmongerAmount(ePlayer, iChange * /*1000*/ GC.getWARMONGER_THREAT_MINOR_CONQUERED_WEIGHT());10211}

Calls

Called by