From 5eae048d99f0449a3050760369fc1c7e6b808e6f Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 2 Nov 2025 19:47:54 +0000 Subject: [PATCH] Fixed bug in `GetPresetPriceByChildren` where root item was having be a combination of static and dynamic price + fixed root item not always being found --- .../SPTarkov.Server.Core/Services/RagfairPriceService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Services/RagfairPriceService.cs b/Libraries/SPTarkov.Server.Core/Services/RagfairPriceService.cs index bdb8fbf9..494fd6c3 100644 --- a/Libraries/SPTarkov.Server.Core/Services/RagfairPriceService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/RagfairPriceService.cs @@ -537,9 +537,11 @@ public class RagfairPriceService( foreach (var item in weaponWithChildren) { // Root item uses static price - if (item.ParentId == null) + if (item.ParentId == null || string.Equals(item.ParentId, "hideout", StringComparison.OrdinalIgnoreCase)) { priceTotal += GetStaticPriceForItem(item.Template) ?? 0; + + continue; } priceTotal += GetFleaPriceForItem(item.Template);