Пример #1
0
        public static void extensionChoice()
        {
            Console.WriteLine("Choose one of the following types:");
            Console.WriteLine("1: Rifles \n2: Shotgun \n3: Sniper \n4: Bow \n5: Launcher \n6: Speargun \n7: Go Back");

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

            switch (secondWepChoice)
            {
            case 1:
                PrimaryRifle.chooseCalc();

                break;

            case 2:
                PrimaryShotgun shotgun = new PrimaryShotgun();

                break;

            case 3:
                PrimarySniper sniper = new PrimarySniper();

                break;

            case 4:
                PrimaryBow bow = new PrimaryBow();
                break;

            case 5:
                PrimaryLauncher launcher = new PrimaryLauncher();
                break;

            case 6:
                PrimarySpeargun speargun = new PrimarySpeargun();
                break;

            case 7:
                Console.Clear();
                Program mainWepChoice = new Program();
                Program.weaponChoice();
                break;
            }
        }
Пример #2
0
            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:
                    PrimaryRifle.chooseCalc();
                    break;

                default:
                    Console.WriteLine("Reverting you back to last menu.");
                    PrimaryInnerChoice.extensionChoice();
                    break;
                }
            }