예제 #1
0
        private void ShowArmor()
        {
            var count = 1;

            ArmorCatalog.Clear();

            Console.WriteLine("*** Armor List ***");
            Console.WriteLine($"#   Armor Name             D   OV    SV");
            foreach (var armor in ArmorList.OrderBy(x => x.Name))
            {
                Console.WriteLine($"a{count}. {armor.Name, -20} {armor.Defense, 3} {armor.OriginalValue, 4:C0} {armor.ResellValue, 4:C0}");
                ArmorCatalog.Add($"a{count}", armor);
                count++;
            }
        }
예제 #2
0
        private void HeroArmorSell()
        {
            var count = 1;

            ArmorCatalog.Clear();

            Console.WriteLine("*** Hero Armor List ***");
            Console.WriteLine($"#   Armor Name             D   OV    SV");
            if (this.Hero.ArmorsBag.Count == 0)
            {
                Console.WriteLine($"You have no Armor to sell at this time.");
            }
            else
            {
                foreach (var armor in Hero.ArmorsBag.OrderBy(x => x.Name))
                {
                    Console.WriteLine($"a{count}. {armor.Name,-20} {armor.Defense,3} {armor.OriginalValue,4:C0} {armor.ResellValue,4:C0}");
                    ArmorCatalog.Add($"a{count}", armor);
                }
            }
        }