From 184676d7c4fdb602614b432dc90c995be860712f Mon Sep 17 00:00:00 2001 From: Trevor Standley Date: Thu, 6 Aug 2009 09:59:33 +0000 Subject: [PATCH] AI now performs almost all basic operations. -builds buildings -recruits creatures/heroes -upgrades creatures -moves heroes to random destinations. -passes units to heroes/upgrades heroes' units -attacks weaker parties -and more. --- AI/GeniusAI/CGeniusAI.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/AI/GeniusAI/CGeniusAI.cpp b/AI/GeniusAI/CGeniusAI.cpp index 6cde2176d..3bc1673de 100644 --- a/AI/GeniusAI/CGeniusAI.cpp +++ b/AI/GeniusAI/CGeniusAI.cpp @@ -506,6 +506,7 @@ void CGeniusAI::TownObjective::fulfill(CGeniusAI & cg,HypotheticalGameState &hgs whichTown->hasBuilt=true; break; + case recruitCreatures: ID = whichTown->creaturesToRecruit[which].second.back(); //buy upgraded if possible creature = &VLC->creh->creatures[ID];