private static void Game(Warrior playerl, Warrior player2, int choiceA, int choiceB) { bool win = false; int count1 = 0; int count2 = 0; int menuRange1 = 3; int menuRange2 = 3; do { float dmg1 = 0; float dmg2 = 0; bool evasion1; bool evasion2; int attackMinTmp1 = playerl.attackMin; int attackMaxTmp1 = playerl.attackMax; int attackMinTmp2 = player2.attackMin; int attackMaxTmp2 = player2.attackMax; float defTmp1 = playerl.deffense; float defTmp2 = player2.deffense; GameView(count1); Console.WriteLine(); int choice1 = GiveNumber(" == Co chcesz zrobic GRACZ 1 ==", 1, menuRange1); if (choice1 == 3) { count1 = count1 + 1; } if (choice1 == 1) { float attack1 = playerl.Attack(playerl.attackMin, playerl.attackMax); dmg1 = playerl.Dmg(attack1, player2.deffense); } else if (choice1 == 2) { playerl.deffense = playerl.Deffense(playerl.deffense); } else { if (choiceA == 1) { playerl.deffense = Gladiator.SpecialAttack(playerl.deffense); } else if (choiceA == 2) { player2.life = Neckromancer.SpecialAttack(player2.life); playerl.life = playerl.life + player2.life; } else if (choiceA == 5) { playerl.life = Wizzard.SpecialAttack(playerl.life); } else if (choiceA == 3) { playerl.attackMax = Palladin.SpecialAttack(playerl.attackMax); playerl.attackMin = Palladin.SpecialAttack2(playerl.attackMin); float attack1 = playerl.Attack(playerl.attackMin, playerl.attackMax); dmg1 = playerl.Dmg(attack1, player2.deffense); } else if (choiceA == 4) { dmg1 = BowMan.SpecialAttack(playerl.attackMax); count1++; } } Console.Clear(); GameView(count2); Console.WriteLine(); int choice2 = GiveNumber(" == Co chcesz zrobic GRACZ 2 ==", 1, menuRange2); if (choice2 == 1) { float attack2 = player2.Attack(player2.attackMin, player2.attackMax); dmg2 = player2.Dmg(attack2, playerl.deffense); } else if (choice2 == 2) { player2.deffense = player2.Deffense(player2.deffense); } else { count2++; if (choiceB == 1) { player2.deffense = Gladiator.SpecialAttack(player2.deffense); } else if (choiceB == 2) { playerl.life = Neckromancer.SpecialAttack(playerl.life); player2.life = player2.life + playerl.life; } else if (choiceB == 5) { player2.life = Wizzard.SpecialAttack(player2.life); } else if (choiceB == 3) { player2.attackMax = Palladin.SpecialAttack(player2.attackMax); player2.attackMin = Palladin.SpecialAttack2(player2.attackMin); float attack2 = player2.Attack(player2.attackMin, player2.attackMax); dmg2 = player2.Dmg(attack2, playerl.deffense); } else if (choiceB == 4) { dmg2 = BowMan.SpecialAttack(player2.attackMax); count2++; } } evasion1 = playerl.Evasion(playerl.evasion); evasion2 = player2.Evasion(player2.evasion); if (evasion1 == false) { playerl.life = playerl.life - dmg2; } if (evasion2 == false) { player2.life = player2.life - dmg1; } if (playerl.life < 0 || player2.life < 0) { win = true; } Show(playerl.life, player2.life, dmg1, dmg2, evasion1, evasion2); playerl.attackMin = attackMinTmp1; playerl.attackMax = attackMaxTmp1; playerl.deffense = defTmp1; player2.attackMin = attackMinTmp2; player2.attackMax = attackMaxTmp2; player2.deffense = defTmp2; if (count1 == 2) { menuRange1 = 2; } if (count2 == 2) { menuRange2 = 2; } } while (win == false); if (win == true) { Console.Clear(); Logo(); Console.WriteLine(" == KONIEC GRY =="); Console.WriteLine(); WhoWIn(playerl.life, player2.life); Console.WriteLine(); Console.WriteLine(" == Nacisnij dowolny klawisz =="); Console.ReadKey(); } }