예제 #1
0
 private void ReceiveMenuChanged(object sender, MenuChangedEventArgs e)
 {
     if (!RegressionMod.started)
     {
         return;
     }
     if (Game1.currentLocation is FarmHouse && e.NewMenu is DialogueBox newMenu && Game1.currentLocation.lastQuestionKey == "Sleep" && !SM.RegressionMod.config.Easymode)
     {
         if (this.body.beddingDryTime > Game1.timeOfDay)
         {
             List <Response> privateValue = (List <Response>) this.Helper.Reflection.GetField <List <Response> >((object)newMenu, "responses", true);
             if (privateValue.Count == 2)
             {
                 Response answer = privateValue[1];
                 Game1.currentLocation.answerDialogue(answer);
                 Game1.currentLocation.lastQuestionKey = (string)null;
                 newMenu.closeDialogue();
                 Animations.AnimateDryingBedding(this.body);
             }
         }
     }