generated from admin/template
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using System;
|
|
|
|
class Program {
|
|
static void Main() {
|
|
Console.OutputEncoding = System.Text.Encoding.UTF8;
|
|
Console.InputEncoding = System.Text.Encoding.UTF8;
|
|
Console.WriteLine("Вашего покемона атаковали!");
|
|
Console.WriteLine("Введите сколько у него осталось здоровье! (максимум 50)");
|
|
int currentHp = int.Parse(Console.ReadLine());
|
|
if (currentHp <= 0)
|
|
{
|
|
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
|
|
}
|
|
if (currentHp > 1 && currentHp < 21)
|
|
{
|
|
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
|
|
}
|
|
if (currentHp > 20 && currentHp < 50)
|
|
{
|
|
Console.WriteLine("Покемон ранен, будьте осторожны.");
|
|
}
|
|
if (currentHp >= 50)
|
|
{
|
|
Console.WriteLine("Покемон полон сил и готов к бою!");
|
|
}
|
|
}
|
|
}
|