public void init() { Stash = new List <Item>(); for (int i = 0; i < OriginalItemList.Count; i++) { if (OriginalItemList[i].items != null) { ItemBaseStat stat = ItemListManager.getItemStats(OriginalItemList[i].items.itemID); Item item = new Item(stat); int amount = Random.Range((int)OriginalItemList[i].RandomAmount.x, (int)OriginalItemList[i].RandomAmount.y); item.currentStack = amount; Stash.Add(item); } } }