1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

NK: fix AI speed

This commit is contained in:
Andrii Danylchenko
2022-09-06 21:14:22 +03:00
parent a2dbb6c8ac
commit 2434fe3f6f
14 changed files with 264 additions and 150 deletions

View File

@@ -72,4 +72,9 @@ Composition & Composition::addNext(TSubgoal goal)
bool Composition::isElementar() const
{
return subtasks.back()->isElementar();
}
int Composition::getHeroExchangeCount() const
{
return isElementar() ? taskptr(*subtasks.back())->getHeroExchangeCount() : 0;
}