diff --git a/Process/Processor/DumpProcessor/MultithreadSteppedDumpProcessor.cs b/Process/Processor/DumpProcessor/MultithreadSteppedDumpProcessor.cs index 1dc2265..4dbbeba 100644 --- a/Process/Processor/DumpProcessor/MultithreadSteppedDumpProcessor.cs +++ b/Process/Processor/DumpProcessor/MultithreadSteppedDumpProcessor.cs @@ -146,7 +146,7 @@ public class MultithreadSteppedDumpProcessor : IDumpProcessor // Static loot distribution output.Add( OutputFileType.StaticLoot, - StaticLootProcessor.CreateStaticLootDistribution(dumpProcessData.ContainerCounts) + StaticLootProcessor.CreateStaticLootDistribution(dumpProcessData.ContainerCounts, staticContainers) ); if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Info)) diff --git a/Process/Processor/StaticLootProcessor.cs b/Process/Processor/StaticLootProcessor.cs index 30ac69c..300a03c 100644 --- a/Process/Processor/StaticLootProcessor.cs +++ b/Process/Processor/StaticLootProcessor.cs @@ -113,17 +113,24 @@ public static class StaticLootProcessor } public static Dictionary CreateStaticLootDistribution( - List container_counts - ) + List container_counts, + Dictionary staticContainers) { + // Iterate over each map we have containers for + foreach (var map in staticContainers) + { + var mapName = map.Key; + var mapContainers = map.Value; + } + var static_loot_distribution = new Dictionary(); - var types = Enumerable.Distinct((from ci in container_counts + var uniqueContainerTypeIds = Enumerable.Distinct((from ci in container_counts select ci.Type).ToList()); - foreach (var typei in types) + foreach (var typeId in uniqueContainerTypeIds) { var container_counts_selected = (from ci in container_counts - where ci.Type == typei + where ci.Type == typeId select ci).ToList(); var itemscounts = new List(); foreach (var ci in container_counts_selected)