public static void WithDragon(Hero hero, Dragon dragon) { while (dragon.HP > 0 && hero.HP > 0) { Stats(dragon, hero); hero.YourTurn(hero.Choice(), dragon); if (dragon.HP > 0) { dragon.DragonTurn(dragon.EChoice(), hero); IsHeroDead(hero); } } Console.WriteLine("{0} was killed !", dragon.Name); Console.ReadLine(); Console.Clear(); }
public static void Army2() { Hero You = new Hero("Hero", 5000, 25000, 10000); Grunt Pig = new Grunt("Pig", 500, 2500, 2000); Grunt Pig1 = new Grunt("Pig", 600, 2500, 2000); Grunt Pig2 = new Grunt("Pig", 700, 2500, 2000); Grunt Pig3 = new Grunt("Pig", 800, 3000, 2000); Grunt Pig4 = new Grunt("Pig", 900, 3000, 2000); Grunt Pig5 = new Grunt("Pig", 500, 3000, 2000); Grunt Pig6 = new Grunt("Pig", 600, 4000, 2000); Grunt Pig7 = new Grunt("Pig", 700, 4000, 2000); Grunt Pig8 = new Grunt("Pig", 800, 4000, 2000); Grunt Pig9 = new Grunt("Pig", 900, 4000, 2000); Grunt Pig10 = new Grunt("Pig", 1000, 4000, 2000); Grunt Pig11 = new Grunt("Pig", 1000, 5000, 2000); Grunt Pig12 = new Grunt("Pig", 1000, 6000, 2000); Grunt Pig13 = new Grunt("Pig", 1000, 6000, 2000); Grunt Pig14 = new Grunt("Pig", 1500, 7000, 2000); Dragon Ultima = new Dragon("Ultima", 2050, 200000, 5000, 5000); Dragon Napoleon = new Dragon("Napoleon, Dragon Form", 1000, 1000000, 10000, 10000); Dragon NapoleonX = new Dragon("Napoleon, Ascended", 30000, 3000000, 30000, 30000); Dragon NapoleonXZ = new Dragon("Napoleon, Lord Of Time", 60000, 8000000, 80000, 80000); Dragon NapoleonXXX = new Dragon("Napoleon, Infinite", 500000, 1000000000, 500000, 500000); Console.WriteLine("SURVIVAL MODE, GOOD LUCK"); Console.ReadLine(); Console.WriteLine("NAPOLEON: We meet once again....if you can break through my army, you get to face me. Too bad you won't get close"); Console.ReadLine(); Console.WriteLine("EASTER EGG MODE!"); Console.ReadLine(); for (int i = 0; i < 200; i++) { You.MasterLevelUp(); } Battle.WithGrunt(You, Pig); Battle.WithGrunt(You, Pig1); Battle.WithGrunt(You, Pig2); Battle.WithGrunt(You, Pig3); Battle.WithGrunt(You, Pig4); Battle.WithGrunt(You, Pig5); Battle.WithGrunt(You, Pig6); Battle.WithGrunt(You, Pig7); Battle.WithGrunt(You, Pig8); Battle.WithGrunt(You, Pig9); Battle.WithGrunt(You, Pig10); Battle.WithGrunt(You, Pig11); Battle.WithGrunt(You, Pig12); Battle.WithGrunt(You, Pig13); Battle.WithGrunt(You, Pig14); Console.WriteLine("<The smoke clears the battlefield...all the orcs are gone. You think it's all clear, when a bright, golden dragon shines in the horizon...>"); Console.ReadLine(); Battle.WithDragon(You, Ultima); Console.WriteLine("<With Ultima defeated you can now reach Napoleon.>"); Console.WriteLine("NAPOLEON: Fool, you have only seen a glimpse of my power. Watch this!!! <Ultima's body begins to reassemble itself around Napoleon...> "); Console.WriteLine("NAPOLEON: WITNESS, MY TRUE FORM!"); Console.ReadLine(); Battle.WithDragon(You, Napoleon); Console.WriteLine("NAPOLEON: This isn't even my final form!"); Console.ReadLine(); Battle.WithDragon(You, NapoleonX); Console.WriteLine("NAPOLEON: Hahaha, no one has ever gotten me to my second form before.."); Console.ReadLine(); Battle.WithDragon(You, NapoleonXZ); Console.WriteLine("NAPOLEON: And this is to go...even further....beyond!!! YOU CANNOT WIN!"); Console.ReadLine(); Battle.WithDragon(You, NapoleonXXX); Console.WriteLine("NAPOLEON: COMRADE. I AM THE KING OF ALL ANIMALS. I SHALL RETURN!!"); Console.WriteLine("He vanishes..."); Console.WriteLine("Congrats, you won the game....for now"); Console.ReadLine(); }
public void Display(ref Player player) { for (int i = 0; i < rooms; i++) { Random rand = new Random(); int enemyrand = 0; if ((player.level + difficulty) != 1) { enemyrand = rand.Next() % (int)((player.level + difficulty) / 2); } switch (biome) { case RoomType.Forest: Console.WriteLine($"You are now entering a {biome.ToString()}"); Forest forest = new Forest(difficulty); Console.WriteLine("\n"); Console.WriteLine(forest.description); Console.WriteLine($"\n\t------------------------------------------------------------------------------"); switch (enemyrand) { case 0: Console.WriteLine($"\n\tA goblin crawls out of the bushes"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Goblin goblin = new Goblin(player.level, difficulty); combat.Fight(ref player, goblin); break; case 1: Console.WriteLine($"\n\tAn orc stands ready to fight"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Orc orc = new Orc(player.level, difficulty); combat.Fight(ref player, orc); break; case 2: Console.WriteLine($"\n\tAn ogre looms over you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Ogre ogre = new Ogre(player.level, difficulty); combat.Fight(ref player, ogre); break; case 3: Console.WriteLine($"\n\tA dragon swoops in smashing to the ground in front of you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Dragon dragon = new Dragon(player.level, difficulty); combat.Fight(ref player, dragon); break; case 4: Console.WriteLine($"\n\tA wizard materializes in front of you in a pillar of fire"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); EvilWizard wizard = new EvilWizard(player.level, difficulty); combat.Fight(ref player, wizard); break; default: Boss boss = new Boss(player.level, difficulty); Console.WriteLine($"\n\t{boss.ename} narrowly misses you as you enter the area. {boss.ename} says,'Finally, {player.name}. I was beginning to think you weren't coming'."); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); combat.Fight(ref player, boss); break; } Console.WriteLine(forest.description); Console.WriteLine($"\n\t------------------------------------------------------------------------------"); //List<string> commands = forest.commands(); Console.WriteLine("Onward!\n\t{Press any key to continue}"); Console.ReadKey(); break; case RoomType.Desert: Console.WriteLine($"You are now entering a {biome.ToString()}"); Desert desert = new Desert(difficulty); Console.WriteLine("\n"); Console.WriteLine(desert.description); Console.WriteLine($"\n\t------------------------------------------------------------------------------"); switch (enemyrand) { case 0: Console.WriteLine($"\n\tA goblin crawls out of the bushes"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Goblin goblin = new Goblin(player.level, difficulty); combat.Fight(ref player, goblin); break; case 1: Console.WriteLine($"\n\tAn orc stands ready to fight"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Orc orc = new Orc(player.level, difficulty); combat.Fight(ref player, orc); break; case 2: Console.WriteLine($"\n\tAn ogre looms over you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Ogre ogre = new Ogre(player.level, difficulty); combat.Fight(ref player, ogre); break; case 3: Console.WriteLine($"\n\tA dragon swoops in smashing to the ground in front of you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Dragon dragon = new Dragon(player.level, difficulty); combat.Fight(ref player, dragon); break; case 4: Console.WriteLine($"\n\tA wizard materializes in front of you in a pillar of fire"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); EvilWizard wizard = new EvilWizard(player.level, difficulty); combat.Fight(ref player, wizard); break; default: Boss boss = new Boss(player.level, difficulty); Console.WriteLine($"\n\t{boss.ename} narrowly misses you as you enter the area. {boss.ename} says,'Finally, {player.name}. I was beginning to think you weren't coming'."); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); combat.Fight(ref player, boss); break; } Console.WriteLine(desert.description); Console.WriteLine($"\n------------------------------------------------------------------------------"); //List<string> commands = forest.commands(); Console.WriteLine("Onward!\n\t{Press any key to continue}"); Console.ReadKey(); break; case RoomType.Cave: Console.WriteLine($"You are now entering a {biome.ToString()}"); Cave cave = new Cave(difficulty); Console.WriteLine("\n"); Console.WriteLine(cave.description); Console.WriteLine($"\n------------------------------------------------------------------------------"); switch (enemyrand) { case 0: Console.WriteLine($"\n\tA goblin crawls out of the bushes"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Goblin goblin = new Goblin(player.level, difficulty); combat.Fight(ref player, goblin); break; case 1: Console.WriteLine($"\n\tAn orc stands ready to fight"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Orc orc = new Orc(player.level, difficulty); combat.Fight(ref player, orc); break; case 2: Console.WriteLine($"\n\tAn ogre looms over you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Ogre ogre = new Ogre(player.level, difficulty); combat.Fight(ref player, ogre); break; case 3: Console.WriteLine($"\n\tA dragon swoops in smashing to the ground in front of you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Dragon dragon = new Dragon(player.level, difficulty); combat.Fight(ref player, dragon); break; case 4: Console.WriteLine($"\n\tA wizard materializes in front of you in a pillar of fire"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); EvilWizard wizard = new EvilWizard(player.level, difficulty); combat.Fight(ref player, wizard); break; default: Boss boss = new Boss(player.level, difficulty); Console.WriteLine($"\n\t{boss.ename} narrowly misses you as you enter the area. {boss.ename} says,'Finally, {player.name}. I was beginning to think you weren't coming'."); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); combat.Fight(ref player, boss); break; } Console.WriteLine(cave.description); Console.WriteLine($"\n------------------------------------------------------------------------------"); //List<string> commands = forest.commands(); Console.WriteLine("Onward!\n\t{Press any key to continue}"); Console.ReadKey(); break; case RoomType.Dungeon: Console.WriteLine($"You are now entering a {biome.ToString()}"); Dungeon dungeon = new Dungeon(difficulty); Console.WriteLine("\n"); Console.WriteLine(dungeon.description); Console.WriteLine($"\n------------------------------------------------------------------------------"); switch (enemyrand) { case 0: Console.WriteLine($"\n\tA goblin crawls out of the bushes"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Goblin goblin = new Goblin(player.level, difficulty); combat.Fight(ref player, goblin); break; case 1: Console.WriteLine($"\n\tAn orc stands ready to fight"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Orc orc = new Orc(player.level, difficulty); combat.Fight(ref player, orc); break; case 2: Console.WriteLine($"\n\tAn ogre looms over you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Ogre ogre = new Ogre(player.level, difficulty); combat.Fight(ref player, ogre); break; case 3: Console.WriteLine($"\n\tA dragon swoops in smashing to the ground in front of you"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); Dragon dragon = new Dragon(player.level, difficulty); combat.Fight(ref player, dragon); break; case 4: Console.WriteLine($"\n\tA wizard materializes in front of you in a pillar of fire"); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); EvilWizard wizard = new EvilWizard(player.level, difficulty); combat.Fight(ref player, wizard); break; default: Boss boss = new Boss(player.level, difficulty); Console.WriteLine($"\n\t{boss.ename} narrowly misses you as you enter the area. {boss.ename} says,'Finally, {player.name}. I was beginning to think you weren't coming'."); Console.WriteLine("FIGHT!\n\t{Press any key to continue}"); Console.ReadKey(); combat.Fight(ref player, boss); break; } Console.WriteLine(dungeon.description); Console.WriteLine($"\n------------------------------------------------------------------------------"); //List<string> commands = forest.commands(); Console.WriteLine("Onward!\n\t{Press any key to continue}"); Console.ReadKey(); break; default: break; } if (player.health < 1) { break; } } }
static void Adventure() { Hero You = new Hero("Hero", 50, 250, 100); Grunt Orc1 = new Grunt("Orc1", 20, 100, 0); Grunt Orc2 = new Grunt("Orc2", 20, 100, 0); Knight OrcKnight1 = new Knight("Orc Knight1", 40, 200, 0); Knight OrcKnight2 = new Knight("Orc Knight2", 40, 200, 0); Dragon BlueDrag = new Dragon("Blue Dragon", 50, 300, 30, 0); Dragon RedDrag = new Dragon("Red Dragon", 70, 400, 40, 0); Dragon BlackDrag = new Dragon("Black Dragon", 80, 500, 50, 0); Dragon Boss = new Dragon("Fenrir", 100, 5000, 100, 0); DemonPig Piggie = new DemonPig("Piggie", 100, 500, 0); DemonPig OldMajor = new DemonPig("OldMajor", 100, 600, 0); DemonPig Piglet = new DemonPig("Piglet", 100, 800, 0); Console.WriteLine("ADVENTURE MODE, +500 LIGHTSIDE POINTS"); Console.ReadLine(); Story.Intro(); Story.One(); Battle.WithGrunt(You, Orc1); Battle.WithGrunt(You, Orc2); You.LevelUp(); Story.Two(); Battle.WithKnight(You, OrcKnight1); Battle.WithKnight(You, OrcKnight2); You.LevelUp(); You.LevelUp(); Story.Three(); Battle.WithDragon(You, BlueDrag); You.LevelUp(); Battle.WithDragon(You, RedDrag); You.LevelUp(); Battle.WithDragon(You, BlackDrag); You.LevelUp(); You.LevelUp(); You.LevelUp(); You.LevelUp(); You.LevelUp(); You.LevelUp(); You.LevelUp(); You.LevelUp(); You.LevelUp(); You.LevelUp(); Story.Interlude(); Battle.WithDragon(You, Boss); Console.WriteLine("You defeated King Fenrir!"); Console.ReadLine(); Story.End(); Story.EpisodeTwo(); Battle.WithPig(You, Piggie); Battle.WithPig(You, OldMajor); Battle.WithPig(You, Piglet); Story.Cliffhanger(); Environment.Exit(0); }