diff --git a/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/bot.json b/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/bot.json index dcfe9a94..f00f8c4f 100644 --- a/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/bot.json +++ b/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/bot.json @@ -834,13 +834,6 @@ "4": 5, "5": 1, "6": 1 - }, - "side_plate": { - "2": 25, - "3": 20, - "4": 5, - "5": 1, - "6": 1 } } }, @@ -877,13 +870,6 @@ "4": 5, "5": 1, "6": 1 - }, - "side_plate": { - "2": 30, - "3": 20, - "4": 5, - "5": 1, - "6": 1 } } }, @@ -920,13 +906,6 @@ "4": 24, "5": 5, "6": 4 - }, - "side_plate": { - "2": 10, - "3": 15, - "4": 24, - "5": 5, - "6": 4 } } }, @@ -963,13 +942,6 @@ "4": 35, "5": 15, "6": 5 - }, - "side_plate": { - "2": 2, - "3": 10, - "4": 35, - "5": 15, - "6": 5 } } }, @@ -1049,13 +1021,6 @@ "4": 10, "5": 40, "6": 50 - }, - "side_plate": { - "2": 0, - "3": 0, - "4": 10, - "5": 40, - "6": 50 } } } diff --git a/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs index 9e565747..50b106f6 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs @@ -176,7 +176,8 @@ public class BotEquipmentModGenerator( ); switch (plateSlotFilteringOutcome.Result) { - case Result.UNKNOWN_FAILURE or Result.NO_DEFAULT_FILTER: + case Result.UNKNOWN_FAILURE + or Result.NO_DEFAULT_FILTER: if (logger.IsLogEnabled(LogLevel.Debug)) { logger.Debug( @@ -281,17 +282,8 @@ public class BotEquipmentModGenerator( settings.BotData.Level >= armorWeight.LevelRange.Min && settings.BotData.Level <= armorWeight.LevelRange.Max ); - if (plateSlotWeights is null) - { - // No weights, return original array of plate tpls - result.Result = Result.LACKS_PLATE_WEIGHTS; - result.PlateModTemplates = existingPlateTplPool; - - return result; - } - // Get the specific plate slot weights (front/back/side) - if (!plateSlotWeights.Values.TryGetValue(modSlot, out var plateWeights)) + if (plateSlotWeights is null || !plateSlotWeights.Values.TryGetValue(modSlot, out var plateWeights)) { // No weights, return original array of plate tpls result.Result = Result.LACKS_PLATE_WEIGHTS;