예제 #1
0
 public string Action(string action, Player player)
 {
     if (!Found)
     {
         if (action.ToLower().Contains("pickup") == true)
         {
             //pick up sword
             Found = true;
             player.Inventory.Add("Sword");
             Console.WriteLine("Picked up the sword");
             return("You picked up the sword");
         }
     }
     return(ConstantStrings.GetMissingSword());
 }