From 512348336caa8a24eac70987f84144c06b65a73b Mon Sep 17 00:00:00 2001 From: Robert Paciorek Date: Fri, 29 Dec 2023 00:36:29 +0000 Subject: [PATCH] fix missing blueprints --- src/Services/InventoryService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/InventoryService.cs b/src/Services/InventoryService.cs index 825e118..9b4e8fb 100644 --- a/src/Services/InventoryService.cs +++ b/src/Services/InventoryService.cs @@ -26,8 +26,8 @@ namespace sodoff.Services { ItemId = itemID, Quantity = 0 }; - if (itemData.ItemStatsMap is null && itemData.PossibleStatsMap != null) { - // battle item without default stats + if (itemData.ItemStatsMap is null && itemData.PossibleStatsMap != null && !itemService.ItemHasCategory(itemData, 651)) { + // battle item without default stats, but not blueprints Random random = new Random(); int itemTier = random.Next(1, 3); item.StatsSerialized = XmlUtil.SerializeXml(new ItemStatsMap {