mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Nullkiller: stabilization
This commit is contained in:
parent
f2c26d7553
commit
80df879489
@ -44,6 +44,9 @@ void DangerHitMapAnalyzer::updateHitMap()
|
||||
|
||||
for(auto pair : heroes)
|
||||
{
|
||||
if(ai->cb->getPlayerRelations(ai->playerID, pair.first) != PlayerRelations::ENEMIES)
|
||||
continue;
|
||||
|
||||
ai->pathfinder->updatePaths(pair.second, PathfinderSettings());
|
||||
|
||||
boost::this_thread::interruption_point();
|
||||
|
@ -316,6 +316,9 @@ float RewardEvaluator::getStrategicalValue(const CGObjectInstance * target) cons
|
||||
return target->subID == Res::GOLD ? 0 : 0.1f * getResourceRequirementStrength(target->subID);
|
||||
|
||||
case Obj::TOWN:
|
||||
if(ai->buildAnalyzer->getDevelopmentInfo().empty())
|
||||
return 1;
|
||||
|
||||
return dynamic_cast<const CGTownInstance *>(target)->hasFort()
|
||||
? (target->tempOwner == PlayerColor::NEUTRAL ? 0.8f : 1.0f)
|
||||
: 0.5f;
|
||||
|
@ -11,7 +11,7 @@
|
||||
#pragma once
|
||||
|
||||
#define PATHFINDER_TRACE_LEVEL 0
|
||||
#define AI_TRACE_LEVEL 2
|
||||
#define AI_TRACE_LEVEL 0
|
||||
#define SCOUT_TURN_DISTANCE_LIMIT 3
|
||||
|
||||
#include "../../../lib/CPathfinder.h"
|
||||
|
Loading…
Reference in New Issue
Block a user