public static void Story01()
        {
            Story.Chapter = "01";
            if (Story.storysent == false)
            {
                //textwidth must be 120 characers across for proper formatting
                Console.WriteLine("You wake from a restless slumber in a room unfamiliar to you. The air is dank and you can see spears of light piercing ");
                Console.WriteLine("through the crumbling marble that were once great walls. The cot beneath you protests as you stir. Searching your");
                Console.WriteLine("surroundings it appears to be a long forgotten room. Disheveled wooden furnishings and a large matted carpet rests upon");
                Console.WriteLine("a wooden floor. Dust, webbings and moss have claimed this place. The floor beneath you groans as you find your footing");
                Console.WriteLine("and you make your way towards the door that now hangs almost completely off its hinges.");
                Console.WriteLine("A huge ornate chandelier dangles precariously and somehow beautifully above as you being to wonder how you wound up");
                Console.WriteLine("here.");
                Console.WriteLine("Press Enter to continue");
                Continue(0);
                Console.WriteLine("Under the light fixture, there is a long table with various silverware next to various fruit, some neatly placed " +
                                  "in bowls and other strewn about, staining the tablecloth and littering the floor. Your eye rests upon a decently sized carving knife " +
                                  "near the center next to a huge peice of rotting meat. Closer to you, is a " +
                                  "broken chair with a piece that could also be used to defend yourself. Wanting to keep a free hand you decide to carry one of these items");;
                Console.WriteLine("Would you prefer the wooden Club or the rusty Knife?");
                storysent = true;
                Console.WriteLine();
                Console.WriteLine("Press 'H' To review menu options. You can utilize this whenever you presented with a Choice");
                Console.WriteLine();
            }
            else
            {
                Console.Clear();
                Console.WriteLine("Under the light fixture, there is a long table with various silverware next to rotting fruit, some neatly placed " +
                                  "in bowls and other strewn about on the floor. Your eye rests upon a decently sized carving knife. Closer to you, is a large " +
                                  "chair in parts with a piece from it resembling a club. Wanting to keep a free hand you decide to carry one of these items");
                Console.WriteLine("Would you prefer the wooden Club or the rusty Knife?");
                Console.WriteLine();
            }
            string[] choices = { "Club", "Knife" };
            Selection = Menus.ChoiceSelection(choices);
            switch (Selection)
            {
            case ConsoleKey.D1:
                Console.WriteLine("You Picked up the improvised Club");
                Blunt Club = new Blunt("Wooden Club", "A piece of furnishing was part of a chair.", 3)
                {
                    Attributes = new string[] { "Blunt", "Heavy", "Brittle" }
                };
                Club.ToInv();
                break;

            case ConsoleKey.D2:
                Console.WriteLine("You Grabbed The Knife From the dinner table");
                Blade Knife = new Blade("Dull Knife", "A small rusted carving knife.", 3);
                Knife.ToInv();
                break;
            }
            //reset the storysent variable at the end of chapter
            storysent = false;
            //Continue the Story

            Story02();
        }
Example #2
0
        //Blunt
        public static int Swing(Blunt Weapon)
        {
            int weapondam = diceroll.Next(0, 2) + Weapon.Damage;
            int Damage    = diceroll.Next(Character.strength - 3, Character.strength);

            Console.WriteLine($"You swing the {Character.Equipped.Name} in a wide arc.");
            Story.Continue(0);
            return(Damage);
        }
Example #3
0
        public static int Smash(Blunt Weapon)
        {
            IsShattering = true;
            int weapondam = diceroll.Next(3, 4) + Weapon.Damage;
            int Damage    = weapondam + diceroll.Next(Character.strength - 2, Character.strength);

            Console.WriteLine($"You raise the {Character.Equipped.Name} high above your head.");
            Thread.Sleep(1000); Console.Write(". "); Thread.Sleep(1000); Console.Write(". "); Thread.Sleep(1000); Console.Write(". ");
            int roll = diceroll.Next(100);

            if (roll < 40) //40% chance to miss
            {
                Console.WriteLine($"The enemy dodges and the {Character.Equipped.Name} smashes into the ground.");
                Damage = 0;
            }
            Story.Continue(0);

            return(Damage);
        }