From 0cea70ef6ad3b8ecffbea5f2a61cd5ba05971535 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 12 Sep 2016 03:49:17 +0200 Subject: [PATCH] Rename card checks methods to match ArchiBoT --- ArchiSteamFarm/JSON/Steam.cs | 4 ++-- ArchiSteamFarm/Trading.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/JSON/Steam.cs b/ArchiSteamFarm/JSON/Steam.cs index e760446b6..938efa95d 100644 --- a/ArchiSteamFarm/JSON/Steam.cs +++ b/ArchiSteamFarm/JSON/Steam.cs @@ -269,9 +269,9 @@ namespace ArchiSteamFarm.JSON { State = state; } - internal bool IsSteamCardsOnlyTradeForUs() => ItemsToGive.All(item => (item.AppID == Item.SteamAppID) && (item.ContextID == Item.SteamContextID) && (item.Type == Item.EType.TradingCard)); + internal bool IsSteamCardsRequest() => ItemsToGive.All(item => (item.AppID == Item.SteamAppID) && (item.ContextID == Item.SteamContextID) && (item.Type == Item.EType.TradingCard)); - internal bool IsPotentiallyDupesTradeForUs() { + internal bool IsFairTypesExchange() { Dictionary> itemsToGivePerGame = new Dictionary>(); foreach (Item item in ItemsToGive) { Dictionary itemsPerType; diff --git a/ArchiSteamFarm/Trading.cs b/ArchiSteamFarm/Trading.cs index 0bfb7ee43..331b0b3d8 100644 --- a/ArchiSteamFarm/Trading.cs +++ b/ArchiSteamFarm/Trading.cs @@ -206,7 +206,7 @@ namespace ArchiSteamFarm { } // Decline trade if we're losing anything but steam cards, or if it's non-dupes trade - if (!tradeOffer.IsSteamCardsOnlyTradeForUs() || !tradeOffer.IsPotentiallyDupesTradeForUs()) { + if (!tradeOffer.IsSteamCardsRequest() || !tradeOffer.IsFairTypesExchange()) { return new ParseTradeResult(tradeOffer.TradeOfferID, ParseTradeResult.EResult.RejectedPermanently); }