public static void WithPig(Hero hero, DemonPig demonpig) { while (demonpig.HP > 0 && hero.HP > 0) { Stats(demonpig, hero); hero.YourTurn(hero.Choice(), demonpig); if (demonpig.HP > 0) { demonpig.PigTurn(demonpig.EChoice(), hero); IsHeroDead(hero); } } Console.WriteLine("{0} was killed!", demonpig.Name); Console.ReadLine(); Console.Clear(); }
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); }