Dialogue system; ask user if they want to teleport to next floor

This commit is contained in:
2024-09-08 23:04:27 -07:00
parent 1dfc61f003
commit 07295da93c
61 changed files with 3002 additions and 85 deletions

View File

@@ -104,6 +104,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
if (Input.IsActionJustPressed(GameInputs.Throw))
{
var selectedMenuItem = ItemList.GetChild<ItemLabel>(_currentSelection);
GameRepo.InventoryItems.Value.Remove(selectedMenuItem.InventoryItem);
ItemList.RemoveChild(selectedMenuItem);
}
}