/**
     * Add a list of items with the given item attributes to a group of chests
     */
    public void AddToChests(ChestSelectionMethod method, bool clearOnAdd, List <System.Type> itemAttributeTypes)
    {
        List <Chest> chests = GetChests(method);

        if (chests != null)
        {
            foreach (Chest chest in chests)
            {
                List <InventoryItem> items = itemAttributeTypes.Select(type => itemResource.GetRandomMatchingItem(type)).ToList();
                AddToChest(chest, clearOnAdd, items);
            }
        }
    }