protected override void resetLocalState() { wasPirateCaveOnLoad = isPirateNight(); base.resetLocalState(); if (isPirateNight()) { addFlame(new Vector2(25.6f, 5.7f), 0f); addFlame(new Vector2(18f, 11f) + new Vector2(0.2f, -0.05f)); addFlame(new Vector2(22f, 11f) + new Vector2(0.2f, -0.05f)); addFlame(new Vector2(23f, 16f) + new Vector2(0.2f, -0.05f)); addFlame(new Vector2(19f, 27f) + new Vector2(0.2f, -0.05f)); addFlame(new Vector2(33f, 10f) + new Vector2(0.2f, -0.05f)); addFlame(new Vector2(21f, 22f) + new Vector2(0.2f, -0.05f)); _parrotTextures = Game1.temporaryContent.Load <Texture2D>("LooseSprites\\parrots"); _parrots = new PerchingBirds(_parrotTextures, 3, 24, 24, new Vector2(12f, 19f), new Point[5] { new Point(12, 2), new Point(35, 6), new Point(25, 14), new Point(28, 1), new Point(27, 12) }, new Point[0]); _parrots.peckDuration = 0; for (int i = 0; i < 3; i++) { _parrots.AddBird(Game1.random.Next(0, 4)); } Game1.changeMusicTrack("PIRATE_THEME", track_interruptable: true, Game1.MusicContext.SubLocation); } if (Game1.currentSeason == "winter") { addMoonlightJellies(40, new Random((int)Game1.stats.DaysPlayed + (int)Game1.uniqueIDForThisGame - 24917), new Microsoft.Xna.Framework.Rectangle(0, 0, 30, 15)); } }
protected override void resetLocalState() { _parrotTextures = Game1.temporaryContent.Load <Texture2D>("LooseSprites\\parrots"); base.resetLocalState(); for (int j = 0; j < 5; j++) { Vector2 v = Utility.getRandomPositionInThisRectangle(new Microsoft.Xna.Framework.Rectangle(14, 3, 16, 12), Game1.random); critters.Add(new Firefly(v)); } AddTorchLights(); if (bananaShrineComplete.Value) { AddGorillaShrineTorches(0); } _parrots = new PerchingBirds(_parrotTextures, 3, 24, 24, new Vector2(12f, 19f), new Point[9] { new Point(18, 8), new Point(17, 9), new Point(20, 7), new Point(21, 8), new Point(22, 7), new Point(23, 8), new Point(18, 12), new Point(25, 11), new Point(27, 8) }, new Point[0]); _parrots.peckDuration = 0; for (int i = 0; i < 5; i++) { _parrots.AddBird(Game1.random.Next(0, 4)); } if (bananaShrineComplete.Value && new Random((int)Game1.uniqueIDForThisGame + (int)Game1.stats.DaysPlayed + 1111).NextDouble() < 0.1) { temporarySprites.Add(new TemporaryAnimatedSprite("TileSheets\\critters", new Microsoft.Xna.Framework.Rectangle(32, 352, 32, 32), 500f, 2, 999, new Vector2(15.5f, 19f) * 64f, flicker: false, flipped: false, 0.1216f, 0f, Color.White, 4f, 0f, 0f, 0f) { id = 888f, yStopCoordinate = 1497, motion = new Vector2(0f, 1f), reachedStopCoordinate = gorillaReachedShrineCosmetic, delayBeforeAnimationStart = 1000 }); } }