fix inventory

This commit is contained in:
Pedro Gomes 2025-09-19 19:04:36 +01:00
parent fc15440afc
commit 61df00985e
2 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@ namespace Kryz.CharacterStats.Examples
{
Debug.Log("Is Full: item count = " + items.Count + " itemSlots lenght = " + itemSlots.Length + " findAllnull/empty names " + items.FindAll(x => string.IsNullOrEmpty(x.ItemName)).Count);
Debug.Log("Is Full: " + (items.Count >= itemSlots.Length || items.FindAll(x => string.IsNullOrEmpty(x.ItemName)).Count <= 0));
Debug.Log("Is Full: " + (items.Count >= itemSlots.Length));
return items.Count >= itemSlots.Length;
//return items.FindAll(x => string.IsNullOrEmpty(x.ItemName)).Count <= 0;
}

View File

@ -386,7 +386,7 @@ public static class GameConstants
public static class Sizes
{
public const int TotalEquipmentSlots = 6;
public const int TotalEquipmentSlots = 10;
public const int TotalInventorySlots = 32;
public const int TotalBuildSlots = 3;
}