mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
CardsFarmer optimizations
When user has IQ only and no IQ games, return early
This commit is contained in:
@@ -41,6 +41,7 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
internal bool HasGamesToRedeemInBackground => GamesToRedeemInBackgroundCount > 0;
|
||||
internal bool HasIdlingPriorityAppIDs => IdlingPriorityAppIDs.Count > 0;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
private readonly ConcurrentHashSet<ulong> BlacklistedFromTradesSteamIDs = new ConcurrentHashSet<ulong>();
|
||||
|
||||
@@ -227,7 +227,8 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Bot.CanReceiveSteamCards) {
|
||||
if (!Bot.CanReceiveSteamCards || (Bot.BotConfig.IdlePriorityQueueOnly && !Bot.BotDatabase.HasIdlingPriorityAppIDs)) {
|
||||
Bot.ArchiLogger.LogGenericInfo(Strings.NothingToIdle);
|
||||
await Bot.OnFarmingFinished(false).ConfigureAwait(false);
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user