Finished first EA Version #1

Merged
Nicola merged 110 commits from dev into main 2026-05-19 20:01:13 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 8b15027ac1 - Show all commits
+2 -2
View File
@@ -5,7 +5,7 @@ public class Inventory
{
public List<Item> items = new List<Item>();
public int maxInventorySize = 8;
public int maxInventorySize = 16;
public event EventHandler OnInventoryUpdate;
public bool AddItem(Item item, int amount)
@@ -18,7 +18,7 @@ public class Inventory
return true;
}
if (items.Count < maxInventorySize)
if (items.Count < maxInventorySize * GameData.maxRobotCount)
{
items.Add(item);
items[items.Count - 1].currentAmount += amount;
+1 -1
View File
@@ -30,7 +30,7 @@ public partial class InventoryDisplay : PanelContainer
private void UpdateInventorySpace()
{
inventorySpace.Text = $"Used space: {GameData.inventory.items.Count}/{GameData.inventory.maxInventorySize}";
inventorySpace.Text = $"Used space: {GameData.inventory.items.Count}/{GameData.inventory.maxInventorySize * GameData.maxRobotCount}";
}
public void ReloadItems()