1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

- ResourceManager now returns abstract goal so it can be decomposed many times

This commit is contained in:
DJWarmonger
2018-07-26 16:15:37 +02:00
parent 1450d408a2
commit e5b979d4ad
2 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -150,7 +150,8 @@ Goals::TSubgoal ResourceManager::collectResourcesForOurGoal(ResourceObjective &o
if (resourceType == Res::GOLD)
goalPriority *= 1000;
return Goals::sptr(Goals::CollectRes(resourceType, amountToCollect));
//this is abstract goal and might take soem time to complete
return Goals::sptr(Goals::CollectRes(resourceType, amountToCollect).setisAbstract(true));
}
Goals::TSubgoal ResourceManager::whatToDo() const //suggest any goal