public void firstDisplay()
            {
                Console.WriteLine("Weapon Name: {0}", WeaponName);
                Console.WriteLine("Weapon Type: {0}", WeaponType);
                Console.WriteLine("Trigger Type: {0}", TriggerType);
                Console.WriteLine("Impact Damage: {0}", impactDMG);
                Console.WriteLine("Slash Damage: {0}", slashDMG);
                Console.WriteLine("Puncture Damage: {0}", punctureDMG);
                Console.WriteLine("Cold Damage: {0}", coldDMG);
                Console.WriteLine("Electricity Damage: {0}", electricityDMG);
                Console.WriteLine("Heat Damage: {0}", heatDMG);
                Console.WriteLine("Toxin Damage: {0}", toxinDMG);
                Console.WriteLine("Status Chance: {0}", statusChance);
                Console.WriteLine("Critical Chance: {0}", critChance);
                Console.WriteLine("Critical Multiplier: {0}", critMultiplier);
                totalIPSDmg     = impactDMG + slashDMG + slashDMG;
                totalElementDmg = coldDMG + electricityDMG + heatDMG + toxinDMG;
                totalSumDMG     = totalIPSDmg + totalElementDmg;
                Console.WriteLine("Total Physical Damage: {0}", totalIPSDmg);
                Console.WriteLine("Total Elemental Damage: {0}", totalElementDmg);
                Console.WriteLine("Sum of all Damage (assuming no armor): {0}", totalSumDMG);

                Console.WriteLine("What would you like to do? \n1: Calculate own data \n2: Go Back");
                int choice = Convert.ToInt32(Console.ReadLine());

                switch (choice)
                {
                case 1:
                    CalcEdit();
                    break;

                case 2:
                    SecondarySingle.chooseCalc();
                    break;

                default:
                    Console.WriteLine("Reverting you back to last menu.");
                    SecondaryInnerChoice.extensionChoice();
                    break;
                }
            }
Beispiel #2
0
        public static void weaponChoice()
        {
            // It has to be constant for switch to work properly
            const int firstChoice  = (int)primaryChoice.Primary;
            const int secondChoice = (int)primaryChoice.Secondary;
            const int thirdChoice  = (int)primaryChoice.Melee;
            const int fourthChoice = (int)primaryChoice.Archwing;
            const int fifthChoice  = (int)primaryChoice.Credits;
            const int sixthChoice  = (int)primaryChoice.Exit;

            Console.WriteLine("Choose one of the following:");
            Console.WriteLine("1: Primary");
            Console.WriteLine("2: Secondary");
            Console.WriteLine("3: Melee");
            Console.WriteLine("4: Archwing");
            Console.WriteLine("5: Credits");
            Console.WriteLine("6: Exit");

            int wepChoice = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("");

            while (wepChoice > 6)
            {
                Console.WriteLine("Please enter a valid number");
                wepChoice = Convert.ToInt32(Console.ReadLine());
            }



            switch (wepChoice)
            {
            case firstChoice:
                Console.WriteLine("You've chose Primary Weapons.");
                PrimaryInnerChoice.extensionChoice();
                Console.ReadKey(true);
                break;

            case secondChoice:
                Console.WriteLine("You've chose Secondary Weapons");
                SecondaryInnerChoice.extensionChoice();
                Console.ReadKey(true);
                break;

            case thirdChoice:
                Console.WriteLine("Bug24 is working on this -- contact him for more information");
                Console.WriteLine("You've chose Melee Weapons");
                MeleeInnerChoice.extensionChoice();
                Console.ReadKey(true);
                break;

            case fourthChoice:
                Console.WriteLine("You've chose Archwing Weapons");
                Console.WriteLine("Coming soon within a newer update!");
                Console.WriteLine("We'll redirect back to the previous menu after clicking a key.");
                Console.ReadKey(true);
                Console.Clear();
                weaponChoice();
                break;

            case fifthChoice:
                CreditPage.credits();
                break;

            case sixthChoice:

                break;
            }
        }
            public void CalcEdit()
            {
                Console.WriteLine("What is your impact damage?");
                impactDMG = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your slash damage?");
                slashDMG = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your puncture damage?");
                punctureDMG = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your cold damage?");
                coldDMG = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your electricity damage?");
                electricityDMG = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your heat damage?");
                heatDMG = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your toxin damage?");
                toxinDMG = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your status chance?");
                statusChance = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your crit chance?");
                critChance = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("What is your crit multiplier?");
                critMultiplier = Convert.ToInt32(Console.ReadLine());

                totalIPSDmg     = impactDMG + slashDMG + slashDMG;
                totalElementDmg = coldDMG + electricityDMG + heatDMG + toxinDMG;
                totalSumDMG     = totalIPSDmg + totalElementDmg;

                Console.WriteLine("Weapon Name: {0}", WeaponName);
                Console.WriteLine("Weapon Type: {0}", WeaponType);
                Console.WriteLine("Trigger Type: {0}", TriggerType);
                Console.WriteLine("Impact Damage: {0}", impactDMG);
                Console.WriteLine("Slash Damage: {0}", slashDMG);
                Console.WriteLine("Puncture Damage: {0}", punctureDMG);
                Console.WriteLine("Cold Damage: {0}", coldDMG);
                Console.WriteLine("Electricity Damage: {0}", electricityDMG);
                Console.WriteLine("Heat Damage: {0}", heatDMG);
                Console.WriteLine("Toxin Damage: {0}", toxinDMG);
                Console.WriteLine("Status Chance: {0}%", statusChance);
                Console.WriteLine("Critical Chance: {0}%", critChance);
                Console.WriteLine("Critical Multiplier: {0}", critMultiplier);
                Console.WriteLine("Total IPS Damage: {0}", totalIPSDmg);
                Console.WriteLine("Total Elemental Damage: {0}", totalElementDmg);
                Console.WriteLine("Sum of all Damage (assuming no armor): {0}", totalSumDMG);

                Console.WriteLine("");
                Console.WriteLine("Please choose one of the following:\n1. Calculate Again \n2. Go Back to Previous Menu \n3. Exit");
                int choice = Convert.ToInt32(Console.ReadLine());

                switch (choice)
                {
                case 1:
                    CalcEdit();
                    break;

                case 2:
                    SecondaryInnerChoice.extensionChoice();
                    break;

                case 3:

                    break;

                default:
                    Console.WriteLine("Reverting back to previous menu");
                    SecondaryInnerChoice.extensionChoice();
                    break;
                }
            }