예제 #1
0
        private void CollectionPlate()
        {
            if (Isgoldthere && !MainPlayer.CheckItem("Cross"))
            {
                Console.WriteLine(@"There is a collection plate with 5 gold pieces on it:
To steal the gold enter S
To return enter R
");

                while (PlayerInput != "S" && PlayerInput != "R")
                {
                    PlayerInput = FilterInput(Console.ReadLine());
                }

                if (PlayerInput == "S")
                {
                    MainPlayer.AddGold(5);
                    Isgoldthere = false;
                    Console.WriteLine("Press enter to continue");
                    Console.Read();
                }
            }
            else if (!Isgoldthere)
            {
                Console.WriteLine(@"You have already taken the gold

Press enter to continue
");
                Console.Read();
            }
            else
            {
                Console.WriteLine(@"As a member of the church you are happy to see 5 gold on the donation plate.

Press enter to contine");
                Console.Read();
            }

            BrokenFace();
        }