public static void performTenMinuteClockUpdate() { if (Game1.IsServer) { MultiplayerUtility.broadcastGameClock(); } int trulyDarkTime = Game1.getTrulyDarkTime(); Game1.gameTimeInterval = 0; Game1.timeOfDay += 10; if (Game1.timeOfDay % 100 >= 60) { Game1.timeOfDay = Game1.timeOfDay - Game1.timeOfDay % 100 + 100; } if (Game1.isLightning && Game1.timeOfDay < 2400) { Utility.performLightningUpdate(); } if (Game1.timeOfDay == trulyDarkTime) { Game1.currentLocation.switchOutNightTiles(); } else if (Game1.timeOfDay == Game1.getModeratelyDarkTime()) { if (Game1.currentLocation.IsOutdoors && !Game1.isRaining) { Game1.ambientLight = Color.White; } if (!Game1.isRaining && !(Game1.currentLocation is MineShaft) && (Game1.currentSong != null && !Game1.currentSong.Name.Contains("ambient")) && Game1.currentLocation is Town) { Game1.changeMusicTrack("none"); } } if (Game1.currentLocation.isOutdoors && !Game1.isRaining && (!Game1.eventUp && Game1.currentSong != null) && (Game1.currentSong.Name.Contains("day") && Game1.isDarkOut())) { Game1.changeMusicTrack("none"); } if (Game1.weatherIcon == 1) { int int32 = Convert.ToInt32(Game1.temporaryContent.Load <Dictionary <string, string> >("Data\\Festivals\\" + Game1.currentSeason + (object)Game1.dayOfMonth)["conditions"].Split('/')[1].Split(' ')[0]); if (Game1.whereIsTodaysFest == null) { Game1.whereIsTodaysFest = Game1.temporaryContent.Load <Dictionary <string, string> >("Data\\Festivals\\" + Game1.currentSeason + (object)Game1.dayOfMonth)["conditions"].Split('/')[0]; } if (Game1.timeOfDay == int32) { string str = Game1.temporaryContent.Load <Dictionary <string, string> >("Data\\Festivals\\" + Game1.currentSeason + (object)Game1.dayOfMonth)["conditions"].Split('/')[0]; if (!(str == "Forest")) { if (!(str == "Town")) { if (str == "Beach") { str = Game1.content.LoadString("Strings\\StringsFromCSFiles:Game1.cs.2639"); } } else { str = Game1.content.LoadString("Strings\\StringsFromCSFiles:Game1.cs.2637"); } } else { str = Game1.currentSeason.Equals("winter") ? Game1.content.LoadString("Strings\\StringsFromCSFiles:Game1.cs.2634") : Game1.content.LoadString("Strings\\StringsFromCSFiles:Game1.cs.2635"); } Game1.showGlobalMessage(Game1.content.LoadString("Strings\\StringsFromCSFiles:Game1.cs.2640", (object)Game1.temporaryContent.Load <Dictionary <string, string> >("Data\\Festivals\\" + Game1.currentSeason + (object)Game1.dayOfMonth)["name"]) + str); } } Game1.player.performTenMinuteUpdate(); switch (Game1.timeOfDay) { case 2500: Game1.dayTimeMoneyBox.timeShakeTimer = 2000; Game1.player.doEmote(24); break; case 2600: Game1.dayTimeMoneyBox.timeShakeTimer = 2000; Game1.farmerShouldPassOut = true; if (Game1.player.getMount() != null) { Game1.player.getMount().dismount(); break; } break; case 2800: Game1.exitActiveMenu(); Game1.player.faceDirection(2); Game1.player.completelyStopAnimatingOrDoingAction(); Game1.player.animateOnce(293); if (Game1.player.getMount() != null) { Game1.player.getMount().dismount(); break; } break; case 1200: if (Game1.currentLocation.isOutdoors && !Game1.isRaining && (Game1.currentSong == null || Game1.currentSong.IsStopped || Game1.currentSong.Name.ToLower().Contains("ambient"))) { Game1.playMorningSong(); break; } break; case 2000: if (!Game1.isRaining && Game1.currentLocation is Town) { Game1.changeMusicTrack("none"); break; } break; case 2400: Game1.dayTimeMoneyBox.timeShakeTimer = 2000; Game1.player.doEmote(24); Game1.showGlobalMessage(Game1.content.LoadString("Strings\\StringsFromCSFiles:Game1.cs.2652")); break; } if (Game1.timeOfDay >= 2600) { Game1.farmerShouldPassOut = true; } foreach (GameLocation location in Game1.locations) { location.performTenMinuteUpdate(Game1.timeOfDay); if (location is Farm) { ((BuildableGameLocation)location).timeUpdate(10); } } if (Game1.mine == null) { return; } Game1.mine.performTenMinuteUpdate(Game1.timeOfDay); }