public static void DarkBasement() { if (HasVisit.basement) { Console.WriteLine(Label.BASEMENT); } else { Console.WriteLine(Desc.bd1); } String KeyIn = Input.getInput(); String Parsed = Input.Parser(KeyIn); if (KeyIn.Equals("turn on flashlight") || KeyIn.Equals("flashlight")) { UnderGround.LightBasement(); } else if (Parsed.Equals("quit")) { RunStat.IsRunning = false; } else if (Parsed.Equals("has been")) { HasVisit.Print(); DarkBasement(); } else if (Parsed.Equals("inv")) { Inventory.ItemStatusPrint(); DarkBasement(); } else if (Parsed.Equals("back")) { Console.WriteLine(Desc.bdt); DarkBasement(); } else if (Parsed.Equals("clr")) { Console.Clear(); GC.Collect(); DarkBasement(); } else { Console.WriteLine("You look around confused"); DarkBasement(); } }
public static void Closet() { if (HasVisit.closet) { Console.WriteLine(Label.CL); } else { Console.WriteLine(Desc.c1); } HasVisit.closet = true; String KeyIn = Input.getInput(); String Parsed = Input.Parser(KeyIn); if (KeyIn.Equals("take flashlight") || KeyIn.Equals("flashlight") || KeyIn.Equals("take flash light")) { if (Inventory.FlareGunN1Taken) { Console.WriteLine("There isn't a flare gun here to take!"); } else { Console.WriteLine("You take the flashlight"); Inventory.flashlight = true; Closet(); } } else if (KeyIn.Equals("take rug")) { Console.WriteLine("What do you expect me to do with this?! It's way too big to carry!"); Closet(); } else if (KeyIn.Equals("move rug")) { Console.WriteLine("You move the rug out of your way, revealing a trapdoor."); HasVisit.trapdoor = true; Closet(); } else if (KeyIn.Equals("enter") && HasVisit.trapdoor) { UnderGround.DarkBasement(); } else if (KeyIn.Equals("look") || KeyIn.Equals("look around")) { if (Inventory.flashlight) { Console.WriteLine(Desc.c2); } else if (HasVisit.trapdoor) { Console.WriteLine(Desc.c4); } else if (HasVisit.trapdoor && Inventory.flashlight) { Console.WriteLine(Desc.c3); } else { Console.WriteLine(Desc.c1); } } else if (Parsed.Equals("quit")) { RunStat.IsRunning = false; } else if (Parsed.Equals("has been")) { HasVisit.Print(); Closet(); } else if (Parsed.Equals("inv")) { Inventory.ItemStatusPrint(); Closet(); } else if (Parsed.Equals("back")) { Bedroom(); } else if (Parsed.Equals("clr")) { Console.Clear(); GC.Collect(); Closet(); } else { Console.WriteLine("You look around confused."); Closet(); } }