generated from admin/template
32 lines
1.3 KiB
C#
32 lines
1.3 KiB
C#
/*Console.WriteLine("=== Прокачка покемона ==");
|
|
Console.WriteLine("Введите базовое значение атаки ");
|
|
int attack = int.Parse(Console.ReadLine());
|
|
Console.WriteLine("Полученные уровни ");
|
|
int levels = int.Parse(Console.ReadLine());
|
|
int finalAttack = attack + (levels * 5);
|
|
Console.WriteLine($"Итоговое значение аттаки {finalAttack}");
|
|
|
|
int balance = 1500;
|
|
int healPotion = 200;
|
|
Console.WriteLine($"Текущий баланс {balance}");
|
|
Console.WriteLine($"Введите кол-во приобритаемых зелий");
|
|
int purchase = healPotion * int.Parse(Console.ReadLine());
|
|
balance -= purchase;
|
|
Console.WriteLine($"Общая стоймость покупки {purchase} Остаток средств на балансе {balance}");*/
|
|
|
|
Console.WriteLine("Введите кол-во HP покемона");
|
|
int hp = int.Parse(Console.ReadLine());
|
|
if (hp<= 0)
|
|
{
|
|
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
|
|
}
|
|
else if (21 < hp && hp > 50)
|
|
{
|
|
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
|
|
}
|
|
else if (hp > 50)
|
|
{
|
|
Console.WriteLine("Покемон полон сил и готов к бою!");
|
|
}
|
|
|