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:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user