Bazaar developer reference

CvDealAI::GetDealPercentLeewayWithHuman() const

Defined in
CvDealAI.cpp, line 91
Class
CvDealAI
Hook name
CivHooks::CvDealAI_GetDealPercentLeewayWithHuman

Hooks

static bool BeforeCvDealAI_GetDealPercentLeewayWithHuman(const CvDealAI* self, int& result);static void AfterCvDealAI_GetDealPercentLeewayWithHuman(const CvDealAI* self, int& result);static int ReplaceCvDealAI_GetDealPercentLeewayWithHuman(int (*original)(const CvDealAI*), const CvDealAI* self);CivRegisterBefore<CivHooks::CvDealAI_GetDealPercentLeewayWithHuman>(host, &BeforeCvDealAI_GetDealPercentLeewayWithHuman);CivRegisterAfter<CivHooks::CvDealAI_GetDealPercentLeewayWithHuman>(host, &AfterCvDealAI_GetDealPercentLeewayWithHuman);CivRegisterReplace<CivHooks::CvDealAI_GetDealPercentLeewayWithHuman>(host, &ReplaceCvDealAI_GetDealPercentLeewayWithHuman);

Code

90/// How much are we willing to back off on what our perceived value of a deal is with a human player to make something work?91int CvDealAI::GetDealPercentLeewayWithHuman() const92{93	return 10;94}

Called by