Tabbed inventory

This commit is contained in:
Marco 2025-03-13 13:29:13 +01:00
commit 6d7282f5cb
214 changed files with 9329 additions and 186 deletions

View file

@ -28,7 +28,7 @@ public partial class Interactable : Area2D, IInteractable
{
if (Requirements.Any())
{
if (InventoryManager.Instance.HasItems(Requirements.Select(x => x.ItemKey).ToList()))
if (InventoryManager.Instance.HasItems(Requirements.Select(x => x.ItemKey.ToString()).ToList()))
{
GD.Print($"Requirements for activation of {this.Name} successfully met: {string.Join(",", Requirements.Select(x => x.Item))} ");
return true;