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

remove allresources

This commit is contained in:
Laserlicht
2025-09-14 15:29:14 +02:00
parent ded1a70dd7
commit 75f965c93a
15 changed files with 29 additions and 34 deletions

View File

@@ -18,6 +18,7 @@
#include "../constants/StringConstants.h"
#include "../entities/artifact/ArtifactUtils.h"
#include "../entities/artifact/CArtifact.h"
#include "../entities/ResourceTypeHandler.h"
#include "../CConfigHandler.h"
#include "../texts/CGeneralTextHandler.h"
#include "../CSkillHandler.h"
@@ -143,7 +144,7 @@ ResourceSet CGMine::dailyIncome() const
{
ResourceSet result;
for (GameResID k : GameResID::ALL_RESOURCES())
for (GameResID k : LIBRARY->resourceTypeHandler->getAllObjects())
result[k] += valOfBonuses(BonusType::GENERATE_RESOURCE, BonusSubtypeID(k));
result[producedResource] += defaultResProduction();
@@ -872,7 +873,7 @@ const IOwnableObject * CGGarrison::asOwnable() const
ResourceSet CGGarrison::dailyIncome() const
{
ResourceSet result;
for (GameResID k : GameResID::ALL_RESOURCES())
for (GameResID k : LIBRARY->resourceTypeHandler->getAllObjects())
result[k] += valOfBonuses(BonusType::GENERATE_RESOURCE, BonusSubtypeID(k));
return result;