private void StockShop() { //Add weapons to weapons list for (var loop = 1; loop <= 5; loop++) { WeaponsList.Add(new Weapon("Wooden Stick", 1, 3, 1)); WeaponsList.Add(new Weapon("Kung Fu Fist", 3, 5, 3)); WeaponsList.Add(new Weapon("ACME Boxing Glove", 5, 10, 5)); WeaponsList.Add(new Weapon("Roundhouse Boots", 8, 18, 8)); } //Add armor to armors list for (var loop = 1; loop <= 5; loop++) { ArmorsList.Add(new Armor("Leather Vest", 1, 2, 1)); ArmorsList.Add(new Armor("Padded Shield", 2, 5, 3)); ArmorsList.Add(new Armor("Shock Absorbing Robe", 5, 9, 5)); ArmorsList.Add(new Armor("Chuck Norris' Beard", 7, 15, 8)); } //Add potions to potions list for (var loop = 1; loop <= 5; loop++) { PotionsList.Add(new Potion("Sizzurp", 5, 5, 2)); PotionsList.Add(new Potion("Super Sizzurp", 10, 10, 5)); PotionsList.Add(new Potion("Sizzurp de Saints", 30, 30, 13)); } }
void ShopListArmors() { var count = 1; Console.WriteLine("---Armors For Sale---"); foreach (var armor in ArmorsList.OrderBy(x => x.Name)) { Console.WriteLine($"a{count} {armor.Name}, {armor.OriginalValue}, {armor.ResellValue}"); ItemCatalog.Add($"a{count}", armor); count++; } Console.WriteLine(""); }