diff --git a/Influx.sln.DotSettings b/Influx.sln.DotSettings
index 6a6eae6..df0680d 100644
--- a/Influx.sln.DotSettings
+++ b/Influx.sln.DotSettings
@@ -1,2 +1,3 @@
- True
\ No newline at end of file
+ True
+ True
\ No newline at end of file
diff --git a/Influx/AllaganTools/AllaganToolsIpc.cs b/Influx/AllaganTools/AllaganToolsIpc.cs
index 04d054e..b022606 100644
--- a/Influx/AllaganTools/AllaganToolsIpc.cs
+++ b/Influx/AllaganTools/AllaganToolsIpc.cs
@@ -5,6 +5,7 @@ using Dalamud.Plugin;
using Dalamud.Plugin.Ipc;
using Dalamud.Plugin.Ipc.Exceptions;
using Dalamud.Plugin.Services;
+using FFXIVClientStructs.FFXIV.Client.Game;
using LLib;
namespace Influx.AllaganTools;
@@ -129,6 +130,7 @@ internal sealed class AllaganToolsIpc : IDisposable
Ventures = inv.Sum(21072),
CeruleumTanks = inv.Sum(10155),
RepairKits = inv.Sum(10373),
+ FreeSlots = inv.FreeInventorySlots,
};
});
}
@@ -144,5 +146,7 @@ internal sealed class AllaganToolsIpc : IDisposable
private sealed class InventoryWrapper(IEnumerable items)
{
public long Sum(int itemId) => items.Where(x => x.ItemId == itemId).Sum(x => x.Quantity);
+
+ public int FreeInventorySlots => 140 - items.Count(x => x.Category == 1);
}
}
diff --git a/Influx/AllaganTools/Currencies.cs b/Influx/AllaganTools/Currencies.cs
index fc05a63..d37908a 100644
--- a/Influx/AllaganTools/Currencies.cs
+++ b/Influx/AllaganTools/Currencies.cs
@@ -10,4 +10,5 @@ internal struct Currencies
public long Ventures { get; init; }
public long CeruleumTanks { get; init; }
public long RepairKits { get; init; }
+ public int FreeSlots { get; init; }
}
diff --git a/Influx/AllaganTools/Inventory.cs b/Influx/AllaganTools/Inventory.cs
index 0028dbd..d93c909 100644
--- a/Influx/AllaganTools/Inventory.cs
+++ b/Influx/AllaganTools/Inventory.cs
@@ -27,5 +27,6 @@ internal sealed class Inventory
.SelectMany(x => x.Cast