Ejemplo n.º 1
0
        private void PrintShopItems()
        {
            PlayAudio.WelcomeToTheShop();
            Console.WriteLine("<---S-H-O-P--->");
            Console.WriteLine("{0} ---> Index[{1}] Price[{2}]", "Item", "ID", "Price");
            for (int i = 0; i < shopInventory.Count; i++)
            {
                Console.WriteLine("{0} ---> {1}  {2} gold", shopInventory[i].Id, i, shopInventory[i].Price);
            }

            Print.PrintMessage(string.Format("Available gold: {0}", player.Gold));
            Console.WriteLine("{0}\n", new string('-', 10));
        }