diff --git a/Program.cs b/Program.cs index 7afcff4..c209ac4 100644 --- a/Program.cs +++ b/Program.cs @@ -35,7 +35,7 @@ namespace creachopedia { case "add": switch (substatus) { case 1: - Console.WriteLine("Please enter a name for the creacher! Or type (b) for previous category, or (q) to cancel addition entirely."); + Console.WriteLine("Please enter a name for the creacher! Or type (x) to cancel and step back to the previous category, or (q) to cancel addition entirely."); break; case 2: Console.WriteLine("How many footsies? 0u0 (numerals only plz)"); @@ -59,11 +59,11 @@ namespace creachopedia { string userin = Console.ReadLine(); string luserin = userin.ToLower(); - if (luserin == "q" || luserin == "quit") { - Console.WriteLine("Thank you for using the CreachoPedia, please come again!!!!"); - return; - } if (status == "base") { + if (luserin == "q" || luserin == "quit") { + Console.WriteLine("Thank you for using the CreachoPedia, please come again!!!!"); + return; + } if (creacherdict.ContainsKey(userin)) { creacherdict[userin].Introduce(); creacherdict[userin].Step(); @@ -82,7 +82,19 @@ namespace creachopedia { } } else if (status == "add") { - if (substatus == 1) { + if (luserin == "x") { + substatus--; + luserin = ""; + } + else if (luserin == "q") { + status = "base"; + } + else if (substatus == 0) { + status = "base"; + substatus = 1; + Console.WriteLine("please hit enter to continue"); + } + else if (substatus == 1) { tempdict = new Dictionary(); var namematcher = new Regex(@"[^ ].[A-Za-z\- ]{2,}(?