Example #1
0
        public static ItemInstance GetBagOfGold(int count)
        {
            ItemInstance bag = WorldState.ItemHandler.CreateSpecificType("Leather bag", "Leather bag");

            for (int i = 0; i < count; i++)
            {
                ItemInstance coin = WorldState.ItemHandler.CreateRandomItemOfType("Currency", true);
                bag.PutItem(coin.GUID);
            }

            return(bag);
        }