BlackFeeder.SRShopAI.Main.BuyItems C# (CSharp) Method

BuyItems() public static method

public static BuyItems ( ) : void
return void
        public static void BuyItems()
        {
            if (!Entry.Menu.SubMenu("FeedingMenu").Item("Items.Activated").GetValue<bool>()) return;
            while ((Queue.Peek() != null && InventoryFull()) && (Queue.Peek().From == null ||(Queue.Peek().From != null && !Queue.Peek().From.Contains(_lastItem.Id))))
            {
                var y = Queue.Dequeue();
                _priceAddup += y.Goldbase;
            }
            var x = 0;
                while ( Queue.Peek().Goldbase <= ObjectManager.Player.Gold - x - _priceAddup && Queue.Count > 0 &&
                       ObjectManager.Player.InShop())
                {
                    var y = Queue.Dequeue();
                    ObjectManager.Player.BuyItem((ItemId) y.Id);
                    _lastItem = y;
                    _priceAddup = 0;
                    x += y.Goldbase;
                }
        }
        public static int FreeSlots()