From b8bcb4ab628783de542367e7efbadd0d3461c2d1 Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 3 Feb 2022 10:28:02 +0000 Subject: [PATCH] remove debug + reset current purchased count to 0 --- AssortUpdater/AssortMerger.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/AssortUpdater/AssortMerger.cs b/AssortUpdater/AssortMerger.cs index c5a9332..6e06e4d 100644 --- a/AssortUpdater/AssortMerger.cs +++ b/AssortUpdater/AssortMerger.cs @@ -13,10 +13,6 @@ namespace AssortUpdater // Add live assorts to merged list foreach (var liveAssort in flattenedLiveAssorts) { - if (liveAssort.AssortId == "61e0a2a8033bdc459438d31f") - { - var x = 1; - } if (liveAssort.RawItem.upd.StackObjectsCount == 0) { var newStackCount = liveAssort.RawItem.upd.BuyRestrictionMax.HasValue @@ -25,6 +21,12 @@ namespace AssortUpdater liveAssort.RawItem.upd.StackObjectsCount = newStackCount; LoggingHelpers.LogWarning($"live assort: {liveAssort.ItemName} level: {liveAssort.Level} has a stack of 0, adding a new value of {newStackCount}"); } + + if (liveAssort.RawItem.upd.BuyRestrictionCurrent > 0) + { + liveAssort.RawItem.upd.BuyRestrictionCurrent = 0; + } + completeAssorts.Add(liveAssort); } LoggingHelpers.LogSuccess($"{trader} Added {flattenedLiveAssorts.Count} items from live");