mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
Implemented basic version of configurable Witch Hut
This commit is contained in:
@@ -90,7 +90,7 @@ Goals::TSubgoal ResourceManager::collectResourcesForOurGoal(ResourceObjective &o
|
||||
{
|
||||
auto allResources = cb->getResourceAmount();
|
||||
auto income = estimateIncome();
|
||||
GameResID resourceType = EGameResID::INVALID;
|
||||
GameResID resourceType = EGameResID::NONE;
|
||||
TResource amountToCollect = 0;
|
||||
|
||||
using resPair = std::pair<GameResID, TResource>;
|
||||
@@ -129,7 +129,7 @@ Goals::TSubgoal ResourceManager::collectResourcesForOurGoal(ResourceObjective &o
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (resourceType == EGameResID::INVALID) //no needed resources has 0 income,
|
||||
if (resourceType == EGameResID::NONE) //no needed resources has 0 income,
|
||||
{
|
||||
//find the one which takes longest to collect
|
||||
using timePair = std::pair<GameResID, float>;
|
||||
|
||||
Reference in New Issue
Block a user