Modernize resourceSet

This commit is contained in:
Konstantin committed 2023-03-17 02:26:54 +03:00
1 parent ecbbbeda9b
commit bbbbfe00f0
12 files changed
+54 -72

No files matched your search

+1 -2
View File
@@ -492,9 +492,8 @@ void IBoatGenerator::getProblemText(MetaString &out, const CGHeroInstance *visit
}
}
void IShipyard::getBoatCost( std::vector<si32> &cost ) const
void IShipyard::getBoatCost(TResources & cost) const
{
cost.resize(GameConstants::RESOURCE_QUANTITY);
cost[Res::WOOD] = 10;
cost[Res::GOLD] = 1000;
}