From 4fc3787cc06490f427366cc27807eda701793105 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 30 Mar 2017 01:26:15 +0200 Subject: [PATCH] Don't announce if we have less than 100 cards in inventory --- ArchiSteamFarm/Statistics.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/Statistics.cs b/ArchiSteamFarm/Statistics.cs index 69bf2a6d6..2be820c3a 100644 --- a/ArchiSteamFarm/Statistics.cs +++ b/ArchiSteamFarm/Statistics.cs @@ -33,6 +33,7 @@ using SteamKit2; namespace ArchiSteamFarm { internal sealed class Statistics : IDisposable { private const byte MinAnnouncementCheckTTL = 6; // Minimum amount of hours we must wait before checking eligibility for Announcement, should be lower than MinPersonaStateTTL + private const byte MinCardsCount = 100; // Minimum amount of cards to be eligible for public listing private const byte MinHeartBeatTTL = 10; // Minimum amount of minutes we must wait before sending next HeartBeat private const byte MinPersonaStateTTL = 8; // Minimum amount of hours we must wait before requesting persona state update @@ -137,8 +138,8 @@ namespace ArchiSteamFarm { return; } - // This is inventory indeed being empty - if (inventory.Count == 0) { + // This is actual inventory + if (inventory.Count < MinCardsCount) { LastAnnouncementCheck = DateTime.UtcNow; ShouldSendHeartBeats = false; return;