Ammo UI system

This commit is contained in:
Marco 2025-02-11 11:50:45 +01:00
commit 5eb7b578bc
22 changed files with 238 additions and 87 deletions

View file

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