// Магазин, где игрок может купить один из мечей private void SwordStore(Player player) { HelloPlayer(player); PrintForShops(); for (int i = 0; i < Program.Swords.Count; i++) { WriteCharacteristics(Program.Swords[i].GetCharacteristics(true, RealCosts["sword"])); switch (Console.ReadKey(true).Key) { case ConsoleKey.Y: if (player.Level >= Program.Swords[i].MinLevelToUse && player.HaveMoney((int)((Program.Swords[i].Cost * RealCosts["sword"])))) { Console.WriteLine("Вы приобрели {0}", Program.Swords[i].Name); player.AddSword(Program.Swords[i]); return; } break; case ConsoleKey.Escape: return; } Console.Clear(); } }