Fix spawn heights and debug menu enemy spawning

This commit is contained in:
2026-02-17 12:27:26 -08:00
parent 37ad0048d7
commit 7393662aa8
22 changed files with 121 additions and 32 deletions

View File

@@ -37,15 +37,12 @@ public partial class InventoryMenu : Control, IInventoryMenu
[Node] public Label StatusLabel { get; set; }
private Dictionary<IBaseInventoryItem, IItemSlot> ItemSlotWithItem;
private List<IItemSlot> ItemSlots;
private IItemSlot _currentlySelected;
public void OnResolved()
{
ItemSlotWithItem = [];
ItemSlots = [.. Inventory.GetChildren().OfType<IItemSlot>()];
ItemSlots.ForEach(x => x.ItemPressed += ItemPressed);
ItemSlots.ForEach(x => x.ItemSelected += ItemSelected);