Rewrite and simplify Inventory Menu, various fixes for item effects
This commit is contained in:
@@ -267,7 +267,7 @@ public partial class Game : Node3D, IGame
|
||||
})
|
||||
.Handle((in GameState.Output.OpenInventoryMenu _) =>
|
||||
{
|
||||
InGameUI.InventoryMenu.RefreshInventoryScreen();
|
||||
//InGameUI.InventoryMenu.RefreshInventoryScreen();
|
||||
InGameUI.InventoryMenu.Show();
|
||||
InGameUI.InventoryMenu.SetProcessInput(true);
|
||||
})
|
||||
@@ -460,7 +460,7 @@ public partial class Game : Node3D, IGame
|
||||
if (item is IStackable stackableItem && stackableItem.Count > 1)
|
||||
stackableItem.SetCount(stackableItem.Count - 1);
|
||||
else
|
||||
GameRepo.RemoveItemFromInventory(item);
|
||||
_player.Inventory.Remove(item);
|
||||
}
|
||||
|
||||
private void MovePlayer(Transform3D spawnPoint) => _player.TeleportPlayer(spawnPoint);
|
||||
|
||||
Reference in New Issue
Block a user