This commit is contained in:
2024-09-23 22:37:10 -07:00
parent a4c18e7cf6
commit 7f1f1a8a14
17 changed files with 479 additions and 25 deletions

View File

@@ -400,6 +400,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
else if (currentItem is IUsableItem usableItem)
{
usableItem.Use();
GameRepo.PlayerData.Inventory.Remove(usableItem);
if (_currentIndex >= ItemSlots.Length - 1)
_currentIndex--;
if (_currentIndex <= 0)