1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Town, mines and garrison now use GENERATE_RESOURCE bonus for income

This commit is contained in:
Ivan Savenko
2025-06-26 15:20:45 +03:00
parent 135768e763
commit 31786c8135
2 changed files with 14 additions and 2 deletions

View File

@@ -206,7 +206,11 @@ int CGTownInstance::getDwellingBonus(const std::vector<CreatureID>& creatureIds,
TResources CGTownInstance::dailyIncome() const
{
TResources ret;
ResourceSet ret;
for (GameResID k : GameResID::ALL_RESOURCES())
ret[k] += valOfBonuses(BonusType::GENERATE_RESOURCE, BonusSubtypeID(k));
for(const auto & p : getTown()->buildings)
{
BuildingID buildingUpgrade;