Smartly putting it in the middle making breaking change, since nobody managed to reference this public API yet! \o/
This commit is contained in:
Archi
2024-01-23 23:01:22 +01:00
parent ba07405d9a
commit 8a52f4fbbb
2 changed files with 9 additions and 3 deletions

View File

@@ -610,6 +610,11 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable {
}
}
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()]");

View File

@@ -750,9 +750,10 @@ public sealed class BotConfig {
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]