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

show income

This commit is contained in:
Laserlicht
2025-10-11 22:01:40 +02:00
parent e81d5bc973
commit 850617afb0
2 changed files with 24 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ ResourceSet NewTurnProcessor::generatePlayerIncome(PlayerColor playerID, bool ne
}
}
for (GameResID k = GameResID::WOOD; k < GameResID::COUNT; k++)
for(auto & k : LIBRARY->resourceTypeHandler->getAllObjects())
{
income += state.valOfBonuses(BonusType::RESOURCES_CONSTANT_BOOST, BonusSubtypeID(k));
income += state.valOfBonuses(BonusType::RESOURCES_TOWN_MULTIPLYING_BOOST, BonusSubtypeID(k)) * state.getTowns().size();