remove debug + reset current purchased count to 0

This commit is contained in:
Chomp 2022-02-03 10:28:02 +00:00
parent 702cbf4b8c
commit b8bcb4ab62

View File

@ -13,10 +13,6 @@ namespace AssortUpdater
// Add live assorts to merged list // Add live assorts to merged list
foreach (var liveAssort in flattenedLiveAssorts) foreach (var liveAssort in flattenedLiveAssorts)
{ {
if (liveAssort.AssortId == "61e0a2a8033bdc459438d31f")
{
var x = 1;
}
if (liveAssort.RawItem.upd.StackObjectsCount == 0) if (liveAssort.RawItem.upd.StackObjectsCount == 0)
{ {
var newStackCount = liveAssort.RawItem.upd.BuyRestrictionMax.HasValue var newStackCount = liveAssort.RawItem.upd.BuyRestrictionMax.HasValue
@ -25,6 +21,12 @@ namespace AssortUpdater
liveAssort.RawItem.upd.StackObjectsCount = newStackCount; 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}"); 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); completeAssorts.Add(liveAssort);
} }
LoggingHelpers.LogSuccess($"{trader} Added {flattenedLiveAssorts.Count} items from live"); LoggingHelpers.LogSuccess($"{trader} Added {flattenedLiveAssorts.Count} items from live");