Skip to content

Commit

Permalink
Closes #3126
Browse files Browse the repository at this point in the history
Smartly putting it in the middle making breaking change, since nobody managed to reference this public API yet! \o/
  • Loading branch information
JustArchi committed Jan 23, 2024
1 parent ba07405 commit 8a52f4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ArchiSteamFarm/Steam/Cards/CardsFarmer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@ private async Task CheckPage(IDocument htmlDocument, ISet<uint> parsedAppIDs) {
}
}

if ((hours <= 0.0F) && Bot.BotConfig.FarmingPreferences.HasFlag(BotConfig.EFarmingPreferences.SkipUnplayedGames)) {
// User is skipping unplayed games, ignore this entry
continue;
}

// Names
INode? nameNode = statsNode?.SelectSingleNode("(.//div[@class='card_drop_info_body'])[last()]");

Expand Down
7 changes: 4 additions & 3 deletions ArchiSteamFarm/Steam/Storage/BotConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,10 @@ public enum EFarmingPreferences : byte {
SendOnFarmingFinished = 4,
FarmPriorityQueueOnly = 8,
SkipRefundableGames = 16,
EnableRiskyCardsDiscovery = 32,
AutoSteamSaleEvent = 64,
All = FarmingPausedByDefault | ShutdownOnFarmingFinished | SendOnFarmingFinished | FarmPriorityQueueOnly | SkipRefundableGames | EnableRiskyCardsDiscovery | AutoSteamSaleEvent
SkipUnplayedGames = 32,
EnableRiskyCardsDiscovery = 64,
AutoSteamSaleEvent = 128,
All = FarmingPausedByDefault | ShutdownOnFarmingFinished | SendOnFarmingFinished | FarmPriorityQueueOnly | SkipRefundableGames | SkipUnplayedGames | EnableRiskyCardsDiscovery | AutoSteamSaleEvent
}

[Flags]
Expand Down

0 comments on commit 8a52f4f

Please sign in to comment.