public void ListArmors() { Console.WriteLine("Armors:"); var count = 1; foreach (var armor in ArmorList.OrderBy(a => a.OriginalValue)) { Console.WriteLine($"a{count}. {armor.Name} - Original Value: {armor.OriginalValue}, Resell Value: {armor.ResellValue}"); ItemCatalog.Add($"a{count}", armor); count++; } Console.WriteLine(); }
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++; } }