diff --git a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ArchiSteamFarm.CustomPlugins.ExamplePlugin.csproj b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ArchiSteamFarm.CustomPlugins.ExamplePlugin.csproj index a3c09fb46..b93dae068 100644 --- a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ArchiSteamFarm.CustomPlugins.ExamplePlugin.csproj +++ b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ArchiSteamFarm.CustomPlugins.ExamplePlugin.csproj @@ -6,7 +6,7 @@ Copyright © ArchiSteamFarm 2015-2019 $(DefaultItemExcludes);debug/**;out/** none - latest + 8.0 Library https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico diff --git a/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj b/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj index 833fe6f98..1211c7964 100644 --- a/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj +++ b/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj @@ -7,7 +7,7 @@ $(DefaultItemExcludes);debug/**;out/** ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously. none - latest + 8.0 Library https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico diff --git a/ArchiSteamFarm/ArchiSteamFarm.csproj b/ArchiSteamFarm/ArchiSteamFarm.csproj index 8ccf1a782..fe5bb588c 100644 --- a/ArchiSteamFarm/ArchiSteamFarm.csproj +++ b/ArchiSteamFarm/ArchiSteamFarm.csproj @@ -12,7 +12,7 @@ none 4.1.0.2 true - latest + 8.0 1591 false Exe diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index 2778749dd..f40905d43 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -315,9 +315,9 @@ namespace ArchiSteamFarm { // ReSharper disable once AccessToDisposedClosure async () => await iPlayerService.CallAsync( HttpMethod.Get, "GetOwnedGames", args: new Dictionary(3, StringComparer.Ordinal) { - { "include_appinfo", 1 }, - { "key", steamApiKey }, - { "steamid", steamID } + { "include_appinfo", 1 }, + { "key", steamApiKey }, + { "steamid", steamID } } ).ConfigureAwait(false) ).ConfigureAwait(false); @@ -1367,8 +1367,8 @@ namespace ArchiSteamFarm { // ReSharper disable once AccessToDisposedClosure async () => await iEconService.CallAsync( HttpMethod.Post, "DeclineTradeOffer", args: new Dictionary(2, StringComparer.Ordinal) { - { "key", steamApiKey }, - { "tradeofferid", tradeID } + { "key", steamApiKey }, + { "tradeofferid", tradeID } } ).ConfigureAwait(false) ).ConfigureAwait(false); @@ -1425,11 +1425,11 @@ namespace ArchiSteamFarm { // ReSharper disable once AccessToDisposedClosure async () => await iEconService.CallAsync( HttpMethod.Get, "GetTradeOffers", args: new Dictionary(5, StringComparer.Ordinal) { - { "active_only", 1 }, - { "get_descriptions", 1 }, - { "get_received_offers", 1 }, - { "key", steamApiKey }, - { "time_historical_cutoff", uint.MaxValue } + { "active_only", 1 }, + { "get_descriptions", 1 }, + { "get_received_offers", 1 }, + { "key", steamApiKey }, + { "time_historical_cutoff", uint.MaxValue } } ).ConfigureAwait(false) ).ConfigureAwait(false); diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index d3480cff1..ae5560daf 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -448,8 +448,7 @@ namespace ArchiSteamFarm { return true; } - return permission switch - { + return permission switch { BotConfig.EPermission.FamilySharing when SteamFamilySharingIDs.Contains(steamID) => true, _ => BotConfig.SteamUserPermissions.TryGetValue(steamID, out BotConfig.EPermission realPermission) && (realPermission >= permission), }; @@ -1866,15 +1865,14 @@ namespace ArchiSteamFarm { return false; } - switch (paymentMethod) { - case EPaymentMethod.ActivationCode: - case EPaymentMethod.Complimentary: // This is also a flag - case EPaymentMethod.GuestPass: - case EPaymentMethod.HardwarePromo: - return false; - default: - return !paymentMethod.HasFlag(EPaymentMethod.Complimentary); - } + // Complimentary is also a flag + return paymentMethod switch { + EPaymentMethod.ActivationCode => false, + EPaymentMethod.Complimentary => false, + EPaymentMethod.GuestPass => false, + EPaymentMethod.HardwarePromo => false, + _ => !paymentMethod.HasFlag(EPaymentMethod.Complimentary) + }; } private async Task JoinMasterChatGroupID() {