Make /dbq request work with all items (not just shards/crystals/clusters)

master v1.2
Liza 2024-10-12 14:55:21 +02:00
parent da37092a85
commit 9ead64eefc
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 4 additions and 2 deletions

View File

@ -119,7 +119,9 @@ internal sealed class DropboxQueue : IDisposable
var missingItems = parsedItems var missingItems = parsedItems
.Select(item => item with .Select(item => item with
{ {
Needed = item.Needed - inventoryManger->GetItemCountInContainer(item.ItemId, InventoryType.Crystals) Needed = item.Needed - DefaultInventoryTypes.Sum(y =>
inventoryManger->GetItemCountInContainer(item.ItemId, y) +
inventoryManger->GetItemCountInContainer(item.ItemId, y, true))
}) })
.Where(x => x.Needed > 0) .Where(x => x.Needed > 0)
.ToList(); .ToList();

View File

@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/9.0.2"> <Project Sdk="Dalamud.NET.Sdk/9.0.2">
<PropertyGroup> <PropertyGroup>
<Version>1.1</Version> <Version>1.2</Version>
<OutputPath>dist</OutputPath> <OutputPath>dist</OutputPath>
</PropertyGroup> </PropertyGroup>