1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Nullkiller: stabilisation, improve gather army

This commit is contained in:
Andrii Danylchenko
2021-05-16 14:19:27 +03:00
committed by Andrii Danylchenko
parent 9d020be63b
commit df78e3243b
7 changed files with 220 additions and 109 deletions

View File

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