1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

AI will not wait to conwuer fort if possible

This commit is contained in:
Tomasz Zieliński
2022-09-09 21:00:33 +02:00
committed by Andrii Danylchenko
parent f0bb97b0d2
commit 6ae3b77d80

View File

@@ -368,7 +368,7 @@ float RewardEvaluator::getStrategicalValue(const CGObjectInstance * target) cons
return dynamic_cast<const CGTownInstance *>(target)->hasFort() return dynamic_cast<const CGTownInstance *>(target)->hasFort()
? (target->tempOwner == PlayerColor::NEUTRAL ? 0.8f : 1.0f) ? (target->tempOwner == PlayerColor::NEUTRAL ? 0.8f : 1.0f)
: 0.5f; : 0.7f;
case Obj::HERO: case Obj::HERO:
return ai->cb->getPlayerRelations(target->tempOwner, ai->playerID) == PlayerRelations::ENEMIES return ai->cb->getPlayerRelations(target->tempOwner, ai->playerID) == PlayerRelations::ENEMIES