public static void extensionChoice() { Console.WriteLine("Choose one of the following types:"); Console.WriteLine("1: Single \n2: Dual \n3: Thrown \n4: Go Back"); int secondWepChoice = Convert.ToInt32(Console.ReadLine()); switch (secondWepChoice) { case 1: SecondarySingle.chooseCalc(); break; case 2: SecondaryDual secDual = new SecondaryDual(); break; case 3: SecondaryThrown secThrown = new SecondaryThrown(); break; case 4: Console.Clear(); Program mainWepChoice = new Program(); Program.weaponChoice(); break; } }
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; } }