Пример #1
0
        private void GoToNextRoom(Room nextRoom)
        {
            Console.Clear();

            player.currentRoom = nextRoom;

            Console.WriteLine("Amount of bad items = " + player.inventory.CheckForBadItems());

            //Only damages player is injured
            if (player.IsInjured())
            {
                //Damages player based on how many bad items he has
                player.DamagePlayer();
                Console.WriteLine("You are injured, moving around will cost HP");
            }

            Console.WriteLine("health = " + player.GetPlayerHealth());
            Console.WriteLine(player.currentRoom.getLongDescription());
        }
Пример #2
0
        private void GoToNextRoom(Room nextRoom)
        {
            Console.Clear();

            player.currentRoom = nextRoom;

            Console.WriteLine("Amount of bad items = " + player.inventory.CheckForBadItems());

            //Only damages player is injured
            if (player.IsHurt())
            {
                //Damages player based on how many bad items he has
                player.DamagePlayer();
                Console.WriteLine("You are hurt, taking steps will drain your Lifepoints");
            }

            Console.WriteLine("Health = " + player.GetPlayerHealth());
            Console.WriteLine(player.currentRoom.getLongDescription());
        }