using Cirno.Scripts.Resources; using Godot; using Godot.Collections; namespace Cirno.Scripts.Interactables; public partial class ItemPickup : Interactable { [Export] public Array LootTable = new Array(); public override bool Activate(ActivationType activationType = ActivationType.Toggle) { GD.Print("Attempting to Pickup Item"); if (!MeetsRequirements()) return false; foreach (var item in LootTable) { InventoryManager.Instance.AddItem(item); } // Delet This QueueFree(); return true; } }