generated from admin/template
save
This commit is contained in:
@@ -5,5 +5,103 @@ public class main
|
|||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
int currentPokemonIndex = 0;
|
||||||
|
|
||||||
|
Console.Write("Введите стадию развития: ");
|
||||||
|
string stage = Console.ReadLine();
|
||||||
|
Console.Write("Введите вид покемона: ");
|
||||||
|
string category = Console.ReadLine();
|
||||||
|
Console.Write("Введите название 1-й атаки: ");
|
||||||
|
string attack1Name = Console.ReadLine();
|
||||||
|
Console.Write("Введите базовый урон 1-й атаки: ");
|
||||||
|
int attack1BaseDamage = int.Parse(Console.ReadLine());
|
||||||
|
Console.Write("Введите название 2-й атаки: ");
|
||||||
|
string attack2Name = Console.ReadLine();
|
||||||
|
Console.Write("Введите базовый урон 2-й атаки: ");
|
||||||
|
int attack2BaseDamage = int.Parse(Console.ReadLine());
|
||||||
|
Console.Write("Введите уязвимость: ");
|
||||||
|
string weakness = Console.ReadLine();
|
||||||
|
Console.Write("Введите устойчивость: ");
|
||||||
|
string resistance = Console.ReadLine();
|
||||||
|
Console.Write("Введите текущее HP: ");
|
||||||
|
int hp = int.Parse(Console.ReadLine());
|
||||||
|
Console.Clear();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
string[] enemyTeam = new string[3] { "Бульбазавар", "Сквиртл", "Коффинг" };
|
||||||
|
int enemyIndex = 0;
|
||||||
|
int enemyHP = 70;
|
||||||
|
int enemyBaseDamage = 15;
|
||||||
|
int roundNumber = 1;
|
||||||
|
int actionChoice = 0;
|
||||||
|
bool isEnemyDebuffed = false;
|
||||||
|
|
||||||
|
string[] ememyNames = new string[3] { "Мяут", "Геодуд", "Гарчомп" };
|
||||||
|
int[] enemyHPs = new int[3] {40, 65, 90};
|
||||||
|
int[] enemyDamages = new int[3] { 10, 15, 25 };
|
||||||
|
int[] enemyTypes = new int[3] { 3, 1, 2 };
|
||||||
|
|
||||||
|
int currentEnemyIndex = 0;
|
||||||
|
int activeFighterIndex = 0;
|
||||||
|
|
||||||
|
Console.WriteLine("=== РЕГИСТРАЦИЯ КОМАНДЫ ===");
|
||||||
|
string[] activeTeam = new string[3];
|
||||||
|
for (int i = 0; i < activeTeam.Length; i++)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Введите имя покемона №{i + 1}: ");
|
||||||
|
activeTeam[i] = Console.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
string name = activeTeam[0];
|
||||||
|
|
||||||
|
Console.WriteLine("--- Ваша команда на этот бой ---");
|
||||||
|
for (int i = 0; i < activeTeam.Length; i++)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"1. {activeTeam[i]}");
|
||||||
|
}
|
||||||
|
|
||||||
|
int[] pokedexHP = new int[activeTeam.Length];
|
||||||
|
for (int i = 0; i < activeTeam.Length; i++)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Введите макс. HP для {activeTeam[i]}: ");
|
||||||
|
pokedexHP[i] = int.Parse(Console.ReadLine());
|
||||||
|
}
|
||||||
|
|
||||||
|
int [] pokedexDamage = new int[activeTeam.Length];
|
||||||
|
for (int i = 0; i < activeTeam.Length; i++)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Введите базовый урон для {activeTeam[i]}: ");
|
||||||
|
pokedexDamage[i] = int.Parse(Console.ReadLine());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<string> backpack = new List<string>();
|
||||||
|
backpack.Add("Зелеья HP");
|
||||||
|
backpack.Add("Покебол");
|
||||||
|
backpack.Add("Антидот");
|
||||||
|
|
||||||
|
bool hasHealingItem = false;
|
||||||
|
if (backpack.Contains("Зелья HP"))
|
||||||
|
{
|
||||||
|
hasHealingItem = true;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
hasHealingItem = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("=== ИНВЕНТАРЬ ТРЕНЕРА ===");
|
||||||
|
Console.WriteLine($"Вы положили вещи в сумку. Предметов в инвентаре: {backpack.Count}");
|
||||||
|
backpack.Remove("Покебол");
|
||||||
|
Console.WriteLine("Вы использовали один Покебол для поимки дикого покемона!");
|
||||||
|
Console.WriteLine($"Обновленный инвентарь. Осталось предметов: {backpack.Count}");
|
||||||
|
|
||||||
|
Console.WriteLine($"--- Содержимое вашей сумки ---");
|
||||||
|
foreach (string item in backpack)
|
||||||
|
{
|
||||||
|
Console.WriteLine( $"[Предмет] -> {item}");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user