コード例 #1
0
        public static void useItems()
        {
            Game.getCurrentRoomDescription();
            if (Game.descRoom == "you're in the basement of the lab" && Items.lantern == false)
            {
                Console.WriteLine("you've hurt yourself by grabbing a knife from the wrong end...");
                Player.giveDamage();
            }
            else if (Game.descRoom == "you're in the basement of the lab" && Items.lantern == true)
            {
            }
            else if (Game.descRoom == "outside the main entrance of the university")
            {
                Currentroom.getCurrentRoomItems();
                Items.outsideItem = false;

                if (Inventory.inv1 == null)

                {
                    Inventory.inv1 = "stick";
                }
                Console.WriteLine(Inventory.inv1);
            }
        }
コード例 #2
0
 public void printSearch()
 {
     getCurrentRoomDescription();
     Currentroom.getCurrentRoomItems();
     Currentroom.useItems();
 }