Bazaar developer reference

CvMinorCivAI::IsGoodTimeForPledgeToProtectQuest()

Defined in
CvMinorCivAI.cpp, line 6034
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_IsGoodTimeForPledgeToProtectQuest

Hooks

static bool BeforeCvMinorCivAI_IsGoodTimeForPledgeToProtectQuest(CvMinorCivAI* self, bool& result);static void AfterCvMinorCivAI_IsGoodTimeForPledgeToProtectQuest(CvMinorCivAI* self, bool& result);static bool ReplaceCvMinorCivAI_IsGoodTimeForPledgeToProtectQuest(bool (*original)(CvMinorCivAI*), CvMinorCivAI* self);CivRegisterBefore<CivHooks::CvMinorCivAI_IsGoodTimeForPledgeToProtectQuest>(host, &BeforeCvMinorCivAI_IsGoodTimeForPledgeToProtectQuest);CivRegisterAfter<CivHooks::CvMinorCivAI_IsGoodTimeForPledgeToProtectQuest>(host, &AfterCvMinorCivAI_IsGoodTimeForPledgeToProtectQuest);CivRegisterReplace<CivHooks::CvMinorCivAI_IsGoodTimeForPledgeToProtectQuest>(host, &ReplaceCvMinorCivAI_IsGoodTimeForPledgeToProtectQuest);

Code

6033/// The minor civ has been bullied recently and could use some help?6034bool CvMinorCivAI::IsGoodTimeForPledgeToProtectQuest()6035{6036	if(IsRecentlyBulliedByAnyMajor())6037	{6038		return true;6039	}60406041	return false;6042}

Calls

Called by