From 3ac4eebcd9767eba7087c4b864b1ab15d753179f Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 27 Jan 2025 21:11:17 +0000 Subject: [PATCH 1/2] Updated version --- Libraries/SptAssets/Assets/configs/core.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SptAssets/Assets/configs/core.json b/Libraries/SptAssets/Assets/configs/core.json index adb4d443..3abce4d3 100644 --- a/Libraries/SptAssets/Assets/configs/core.json +++ b/Libraries/SptAssets/Assets/configs/core.json @@ -1,7 +1,7 @@ { "sptVersion": "4.0.0", "projectName": "SPT", - "compatibleTarkovVersion": "0.16.0.34568", + "compatibleTarkovVersion": "0.16.0.34644", "serverName": "SPT Server", "profileSaveIntervalSeconds": 15, "sptFriendNickname": "SPT", From 8c7c01b21431f6bedfeac1c3efb9f66f3172960d Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 27 Jan 2025 21:11:55 +0000 Subject: [PATCH 2/2] Fixed mod chance calculation --- Libraries/Core/Generators/BotEquipmentModGenerator.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Core/Generators/BotEquipmentModGenerator.cs b/Libraries/Core/Generators/BotEquipmentModGenerator.cs index 68c203f1..db544989 100644 --- a/Libraries/Core/Generators/BotEquipmentModGenerator.cs +++ b/Libraries/Core/Generators/BotEquipmentModGenerator.cs @@ -940,8 +940,7 @@ public class BotEquipmentModGenerator( return ModSpawn.SPAWN; } - - var spawnMod = _probabilityHelper.RollChance(modSpawnChances.GetValueOrDefault(modSlotName)); + var spawnMod = _probabilityHelper.RollChance(modSpawnChances.GetValueOrDefault(modSlotName.ToLower())); if (!spawnMod && (slotRequired.GetValueOrDefault(false) || (botEquipConfig.WeaponSlotIdsToMakeRequired?.Contains(modSlotName) ?? false))) { // Edge case: Mod is required but spawn chance roll failed, choose default mod spawn for slot