mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Pathfinder cache is now stored separately per playerBlocked
- human player will now use pathfinder settings from config (as before) - nullkiller AI will now use its own, modified settings - added option to configure NKAI usage of monolith to config - fixed pathfinder costs not updating on receiving levelup
This commit is contained in:
@@ -1296,7 +1296,7 @@ bool AIGateway::moveHeroToTile(int3 dst, HeroPtr h)
|
||||
else
|
||||
{
|
||||
CGPath path;
|
||||
cb->getPathsInfo(h.get())->getPath(path, dst);
|
||||
nullkiller->getPathsInfo(h.get())->getPath(path, dst);
|
||||
if(path.nodes.empty())
|
||||
{
|
||||
logAi->error("Hero %s cannot reach %s.", h->getNameTranslated(), dst.toString());
|
||||
@@ -1808,4 +1808,9 @@ bool AIStatus::channelProbing()
|
||||
return ongoingChannelProbing;
|
||||
}
|
||||
|
||||
void AIGateway::invalidatePaths()
|
||||
{
|
||||
nullkiller->invalidatePaths();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user