Tied inventory to robot count
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user