Allow overpaying also in steam cards

This commit is contained in:
JustArchi
2016-05-06 23:38:22 +02:00
parent fbe4e4bc6d
commit 8447e07aa0

View File

@@ -294,7 +294,7 @@ namespace ArchiSteamFarm {
}
}
// Ensure that amount per type and per game matches
// Ensure that amount of items to give is at least amount of items to receive (per game and per type)
foreach (KeyValuePair<uint, Dictionary<Item.EType, uint>> ItemsPerGame in ItemsToGivePerGame) {
Dictionary<Item.EType, uint> otherItemsPerType;
if (!ItemsToReceivePerGame.TryGetValue(ItemsPerGame.Key, out otherItemsPerType)) {
@@ -307,7 +307,7 @@ namespace ArchiSteamFarm {
return false;
}
if (ItemsPerType.Value != otherAmount) {
if (ItemsPerType.Value > otherAmount) {
return false;
}
}