From 5990fac6ee6fe5c1bf1455b16bcf31599f389620 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 28 Feb 2018 02:14:29 +0100 Subject: [PATCH] Add IdlePriorityQueueOnly --- ArchiSteamFarm/BotConfig.cs | 3 +++ ArchiSteamFarm/CardsFarmer.cs | 4 ++-- ArchiSteamFarm/config/example.json | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/BotConfig.cs b/ArchiSteamFarm/BotConfig.cs index 9e4da52c5..14154b6fe 100644 --- a/ArchiSteamFarm/BotConfig.cs +++ b/ArchiSteamFarm/BotConfig.cs @@ -68,6 +68,9 @@ namespace ArchiSteamFarm { [JsonProperty(Required = Required.DisallowNull)] internal readonly byte HoursUntilCardDrops = 3; + [JsonProperty(Required = Required.DisallowNull)] + internal readonly bool IdlePriorityQueueOnly; + [JsonProperty(Required = Required.DisallowNull)] internal readonly bool IdleRefundableGames = true; diff --git a/ArchiSteamFarm/CardsFarmer.cs b/ArchiSteamFarm/CardsFarmer.cs index 906b41dfb..7f372b945 100755 --- a/ArchiSteamFarm/CardsFarmer.cs +++ b/ArchiSteamFarm/CardsFarmer.cs @@ -363,8 +363,8 @@ namespace ArchiSteamFarm { continue; } - if (GlobalConfig.SalesBlacklist.Contains(appID) || Program.GlobalConfig.Blacklist.Contains(appID) || Bot.IsBlacklistedFromIdling(appID)) { - // We have this appID blacklisted, so skip it + if (GlobalConfig.SalesBlacklist.Contains(appID) || Program.GlobalConfig.Blacklist.Contains(appID) || Bot.IsBlacklistedFromIdling(appID) || (Bot.BotConfig.IdlePriorityQueueOnly && !Bot.IsPriorityIdling(appID))) { + // We're configured to ignore this appID, so skip it continue; } diff --git a/ArchiSteamFarm/config/example.json b/ArchiSteamFarm/config/example.json index ff7344365..f878c6611 100644 --- a/ArchiSteamFarm/config/example.json +++ b/ArchiSteamFarm/config/example.json @@ -10,6 +10,7 @@ "GamesPlayedWhileIdle": [], "HandleOfflineMessages": false, "HoursUntilCardDrops": 3, + "IdlePriorityQueueOnly": false, "IdleRefundableGames": true, "IsBotAccount": false, "LootableTypes": [