fixed handling for substatus = 0

This commit is contained in:
Pecha 2020-09-14 22:00:16 +10:00
parent ffde3b80d7
commit b9d27caf2d
5 changed files with 4 additions and 2 deletions

View file

@ -34,6 +34,9 @@ namespace creachopedia {
break; break;
case "add": case "add":
switch (substatus) { switch (substatus) {
case 0:
Console.WriteLine("please hit enter to continue");
break;
case 1: case 1:
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."); 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; break;
@ -61,7 +64,7 @@ namespace creachopedia {
if (status == "base") { if (status == "base") {
if (luserin == "q" || luserin == "quit") { if (luserin == "q" || luserin == "quit") {
Console.WriteLine("Thank you for using the CreachoPedia, please come again!!!!"); Console.WriteLine("for you for using the CreachoPedia, please come again!!!!");
return; return;
} }
if (creacherdict.ContainsKey(userin)) { if (creacherdict.ContainsKey(userin)) {
@ -92,7 +95,6 @@ namespace creachopedia {
else if (substatus == 0) { else if (substatus == 0) {
status = "base"; status = "base";
substatus = 1; substatus = 1;
Console.WriteLine("please hit enter to continue");
} }
else if (substatus == 1) { else if (substatus == 1) {
tempdict = new Dictionary<string, string>(); tempdict = new Dictionary<string, string>();