Ejemplo n.º 1
0
 protected virtual void setUpGame()
 {
     Game1.flushLocationLookup();
     Game1.player.updateFriendshipGifts(Game1.Date);
     Game1.gameMode = 3;
     Game1.stats.checkForAchievements();
     Game1.multiplayerMode = 1;
     Game1.client          = this;
     Game1.RefreshQuestOfTheDay();
     readyToPlay = true;
     BedFurniture.ApplyWakeUpPosition(Game1.player);
     Game1.fadeClear();
     Game1.currentLocation.resetForPlayerEntry();
     Game1.initializeVolumeLevels();
     Game1.addKentIfNecessary();
     Game1.addBirdieIfNecessary();
     Game1.addParrotBoyIfNecessary();
     if (Game1.MasterPlayer.eventsSeen.Contains(558291) && !Game1.player.songsHeard.Contains("grandpas_theme"))
     {
         Game1.player.songsHeard.Add("grandpas_theme");
     }
     Game1.AddModNPCs();
     Game1.exitActiveMenu();
     if (!Game1.player.isCustomized)
     {
         Game1.activeClickableMenu = new CharacterCustomization(CharacterCustomization.Source.NewFarmhand);
     }
     Game1.player.team.AddAnyBroadcastedMail();
     if (Game1.shouldPlayMorningSong(loading_game: true))
     {
         Game1.playMorningSong();
     }
     for (int i = 1; i < (int)Game1.netWorldState.Value.HighestPlayerLimit; i++)
     {
         if (Game1.getLocationFromName("Cellar" + (i + 1)) == null)
         {
             Game1.locations.Add(new Cellar("Maps\\Cellar", "Cellar" + (i + 1)));
         }
     }
     Game1.player.showToolUpgradeAvailability();
     Game1.dayTimeMoneyBox.questsDirty = true;
     Game1.player.ReequipEnchantments();
     Game1.player.isSitting.Value = false;
 }