1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

NKAI: port exploration from VCAI

This commit is contained in:
Andrii Danylchenko
2024-05-19 10:04:45 +03:00
parent e5322eacfd
commit 820f0e0c1a
27 changed files with 1503 additions and 880 deletions
+3 -1
View File
@@ -73,7 +73,9 @@ namespace Goals
CAPTURE_OBJECT,
SAVE_RESOURCES,
STAY_AT_TOWN_BEHAVIOR,
STAY_AT_TOWN
STAY_AT_TOWN,
EXPLORATION_BEHAVIOR,
EXPLORATION_POINT
};
class DLL_EXPORT TSubgoal : public std::shared_ptr<AbstractGoal>
+1 -1
View File
@@ -148,7 +148,7 @@ void ExecuteHeroChain::accept(AIGateway * ai)
return;
}
}
else if(i > 0 && ai->nullkiller->settings->isObjectGraphAllowed())
else if(i > 0 && ai->nullkiller->isObjectGraphAllowed())
{
auto chainMask = i < chainPath.nodes.size() - 1 ? chainPath.nodes[i + 1].chainMask : node->chainMask;