diff --git a/Libraries/SPTarkov.Server.Core/Generators/LocationLootGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/LocationLootGenerator.cs index 8059ca09..202a528d 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/LocationLootGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/LocationLootGenerator.cs @@ -408,7 +408,7 @@ public class LocationLootGenerator( containerDistribution.Add(new ProbabilityObject(x, value, value)); } - chosenContainerIds.AddRange(containerDistribution.Draw((int)containerData.ChosenCount)); + chosenContainerIds.AddRange(containerDistribution.Draw((int) containerData.ChosenCount)); return chosenContainerIds; } @@ -788,8 +788,7 @@ public class LocationLootGenerator( dynamicLootDist.Spawnpoints.Where(point => point.Template.IsAlwaysSpawn ?? false) ); - // Add forced loot to results - AddForcedLoot( + AddForcedDynamicLoot( loot, dynamicForcedSpawnPoints, locationName, @@ -862,7 +861,7 @@ public class LocationLootGenerator( if (randomSpawnPointCount > 0 && spawnPointArray.Count > 0) // Add randomly chosen spawn points { - foreach (var si in spawnPointArray.Draw((int)randomSpawnPointCount, false)) + foreach (var si in spawnPointArray.Draw((int) randomSpawnPointCount, false)) { chosenSpawnPoints.Add(spawnPointArray.Data(si)); } @@ -1007,14 +1006,14 @@ public class LocationLootGenerator( } /// - /// Add forced spawn point loot into loot parameter list + /// Add forced spawn point loot into loot parameter list, these are primarily quest items /// /// List to add forced loot spawn locations to /// Forced loot locations that must be added /// Name of map currently having force loot created for /// /// Dictionary of itemTpls and their max spawn count - protected void AddForcedLoot( + protected void AddForcedDynamicLoot( List lootLocationTemplates, List forcedSpawnPoints, string locationName,