1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Nullkiller - rewrite decomposition, decomposition cache, morale management

This commit is contained in:
Andrii Danylchenko
2021-05-16 14:56:42 +03:00
committed by Andrii Danylchenko
parent 35a1167f3d
commit e385c83a88
18 changed files with 470 additions and 154 deletions

View File

@@ -185,6 +185,13 @@ Goals::TGoalVec CaptureObjectsBehavior::decompose() const
{
captureObjects(objectsToCapture);
}
else if(objectTypes.size())
{
captureObjects(
std::vector<const CGObjectInstance *>(
ai->nullkiller->memory->visitableObjs.begin(),
ai->nullkiller->memory->visitableObjs.end()));
}
else
{
captureObjects(ai->nullkiller->objectClusterizer->getNearbyObjects());