mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
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.
This commit is contained in:
parent
cd4d3e6db3
commit
184676d7c4
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user