From 8447e07aa03698e4a00618ada04eba0b1b4e8755 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 6 May 2016 23:38:22 +0200 Subject: [PATCH] Allow overpaying also in steam cards --- ArchiSteamFarm/JSON/Steam.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/JSON/Steam.cs b/ArchiSteamFarm/JSON/Steam.cs index e9b5f9fd2..ab28353dd 100644 --- a/ArchiSteamFarm/JSON/Steam.cs +++ b/ArchiSteamFarm/JSON/Steam.cs @@ -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> ItemsPerGame in ItemsToGivePerGame) { Dictionary 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; } }