From 54a28b6fb56ea718a6f9fa5dadd31891212b0eff Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 15 Jun 2013 07:29:59 +0000 Subject: [PATCH] see if this makes the AI produce more food quickly when needed --- source/glest_game/ai/ai_rule.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/glest_game/ai/ai_rule.cpp b/source/glest_game/ai/ai_rule.cpp index 94fcf927..a11145c6 100644 --- a/source/glest_game/ai/ai_rule.cpp +++ b/source/glest_game/ai/ai_rule.cpp @@ -591,13 +591,13 @@ bool AiRuleProduceResourceProducer::test(){ if(factionUsesResourceType == true && rt->getClass() == rcConsumable) { // The consumable balance is negative if(r->getBalance() < 0) { - interval= longInterval; + interval= shortInterval; return true; } // If the consumable balance is down to 1/3 of what we need else { if(r->getBalance() * 3 + r->getAmount() < 0) { - interval= longInterval; + interval= shortInterval; return true; } } @@ -624,7 +624,7 @@ bool AiRuleProduceResourceProducer::test(){ if(rt->getClass() == rcStatic && r->getAmount() < targetStaticResourceCount) { bool factionUsesResourceType = aiInterface->factionUsesResourceType(aiInterface->getMyFactionType(), rt); if(factionUsesResourceType == true) { - interval= longInterval; + interval= shortInterval; return true; } } @@ -633,7 +633,7 @@ bool AiRuleProduceResourceProducer::test(){ if(ai->outputAIBehaviourToConsole()) printf("STATIC returning FALSE\n"); if(aiInterface->isLogLevelEnabled(4) == true) aiInterface->printLog(4, "Static Resource check returning FALSE"); - interval= shortInterval; + interval= longInterval; return false; }