From 47814f1f74c9c3e31e5e23b7efb8a814bff7bed9 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Tue, 29 Sep 2026 12:52:36 -0500 Subject: [PATCH] fix(inventory): package contents are added with the loot source Pickup Live sent AddItemToInventoryClientSync with loot_type_source Pickup for the items of opened packages (token bags, surprise packs, the imaginite bag; all 98 items added after a live UseNonEquipmentItem). DLU used Consumption. Co-Authored-By: Claude Opus 5.5 --- dGame/dInventory/Item.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dGame/dInventory/Item.cpp b/dGame/dInventory/Item.cpp index caff8ee22..4a90955ab 100644 --- a/dGame/dInventory/Item.cpp +++ b/dGame/dInventory/Item.cpp @@ -400,7 +400,8 @@ void Item::UseNonEquip(Item* item) { } if (playerInventoryComponent->HasSpaceForLoot(rolledLoot)) { - Loot::GiveLoot(playerInventoryComponent->GetParent(), rolledLoot, eLootSourceType::CONSUMPTION); + // Live added package contents with the loot source Pickup (all 98 items added after a live UseNonEquipmentItem) + Loot::GiveLoot(playerInventoryComponent->GetParent(), rolledLoot, eLootSourceType::PICKUP); item->SetCount(item->GetCount() - 1); } else { success = false;