Bazaar developer reference

CvDealAI::GetDealPercentLeewayWithAI() const

Defined in
CvDealAI.cpp, line 85
Class
CvDealAI
Hook name
CivHooks::CvDealAI_GetDealPercentLeewayWithAI

Hooks

static bool BeforeCvDealAI_GetDealPercentLeewayWithAI(const CvDealAI* self, int& result);static void AfterCvDealAI_GetDealPercentLeewayWithAI(const CvDealAI* self, int& result);static int ReplaceCvDealAI_GetDealPercentLeewayWithAI(int (*original)(const CvDealAI*), const CvDealAI* self);CivRegisterBefore<CivHooks::CvDealAI_GetDealPercentLeewayWithAI>(host, &BeforeCvDealAI_GetDealPercentLeewayWithAI);CivRegisterAfter<CivHooks::CvDealAI_GetDealPercentLeewayWithAI>(host, &AfterCvDealAI_GetDealPercentLeewayWithAI);CivRegisterReplace<CivHooks::CvDealAI_GetDealPercentLeewayWithAI>(host, &ReplaceCvDealAI_GetDealPercentLeewayWithAI);

Code

84/// How much are we willing to back off on what our perceived value of a deal is with an AI player to make something work?85int CvDealAI::GetDealPercentLeewayWithAI() const86{87	return 25;88}

Called by