1
0
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:
Ivan Savenko
2023-09-30 18:47:47 +03:00
parent 79b7518b0e
commit fd01a25352
28 changed files with 316 additions and 296 deletions
+2 -2
View File
@@ -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>;