protected override void resetLocalState() { base.resetLocalState(); if (Game1.IsRainingHere(this)) { setMapTile(16, 27, 3, "Back", "", 2); setMapTile(18, 27, 4, "Back", "", 2); setMapTile(20, 27, 5, "Back", "", 2); setMapTile(22, 27, 6, "Back", "", 2); setMapTile(24, 27, 7, "Back", "", 2); setMapTile(26, 27, 8, "Back", "", 2); } else { setMapTile(16, 27, 39, "Back", ""); setMapTile(18, 27, 39, "Back", ""); setMapTile(20, 27, 39, "Back", ""); setMapTile(22, 27, 39, "Back", ""); setMapTile(24, 27, 39, "Back", ""); setMapTile(26, 27, 39, "Back", ""); } mermaidSprites = Game1.temporaryContent.Load <Texture2D>("LooseSprites\\temporary_sprites_1"); if (IslandSouthEastCave.isPirateNight()) { Game1.changeMusicTrack("PIRATE_THEME(muffled)", track_interruptable: true, Game1.MusicContext.SubLocation); setMapTileIndex(29, 18, 36, "Buildings", 2); setTileProperty(29, 18, "Buildings", "Passable", "T"); setMapTileIndex(29, 19, 68, "Buildings", 2); setTileProperty(29, 19, "Buildings", "Passable", "T"); setMapTileIndex(30, 18, 99, "Buildings", 2); setTileProperty(30, 18, "Buildings", "Passable", "T"); setMapTileIndex(30, 19, 131, "Buildings", 2); setTileProperty(30, 19, "Buildings", "Passable", "T"); if (!hasLightSource(797)) { sharedLights.Add(797, new LightSource(1, new Vector2(30.5f, 18.5f) * 64f, 4f, LightSource.LightContext.None, 0L)); } } else { setMapTileIndex(29, 18, 35, "Buildings", 2); setTileProperty(29, 18, "Buildings", "Passable", "T"); setMapTileIndex(29, 19, 67, "Buildings", 2); setTileProperty(29, 19, "Buildings", "Passable", "T"); setMapTileIndex(30, 18, 35, "Buildings", 2); setTileProperty(30, 18, "Buildings", "Passable", "T"); setMapTileIndex(30, 19, 67, "Buildings", 2); setTileProperty(30, 19, "Buildings", "Passable", "T"); } if (Game1.currentSeason == "winter" && !Game1.IsRainingHere(this) && Game1.isDarkOut()) { addMoonlightJellies(50, new Random((int)Game1.stats.DaysPlayed + (int)Game1.uniqueIDForThisGame - 24917), new Microsoft.Xna.Framework.Rectangle(0, 0, 0, 0)); } }
protected override void resetLocalState() { base.resetLocalState(); mermaidSprites = Game1.temporaryContent.Load <Texture2D>("LooseSprites\\temporary_sprites_1"); if (IslandSouthEastCave.isPirateNight()) { Game1.changeMusicTrack("PIRATE_THEME(muffled)", track_interruptable: true, Game1.MusicContext.SubLocation); if (!hasLightSource(797)) { sharedLights.Add(797, new LightSource(1, new Vector2(30.5f, 18.5f) * 64f, 4f, LightSource.LightContext.None, 0L)); } } if (Game1.currentSeason == "winter" && !Game1.IsRainingHere(this) && Game1.isDarkOut()) { addMoonlightJellies(50, new Random((int)Game1.stats.DaysPlayed + (int)Game1.uniqueIDForThisGame - 24917), new Microsoft.Xna.Framework.Rectangle(0, 0, 0, 0)); } }
public override void MakeMapModifications(bool force = false) { base.MakeMapModifications(force); if (Game1.IsRainingHere(this)) { setMapTile(16, 27, 3, "Back", "", 2); setMapTile(18, 27, 4, "Back", "", 2); setMapTile(20, 27, 5, "Back", "", 2); setMapTile(22, 27, 6, "Back", "", 2); setMapTile(24, 27, 7, "Back", "", 2); setMapTile(26, 27, 8, "Back", "", 2); } else { setMapTile(16, 27, 39, "Back", ""); setMapTile(18, 27, 39, "Back", ""); setMapTile(20, 27, 39, "Back", ""); setMapTile(22, 27, 39, "Back", ""); setMapTile(24, 27, 39, "Back", ""); setMapTile(26, 27, 39, "Back", ""); } if (IslandSouthEastCave.isPirateNight()) { setMapTileIndex(29, 18, 36, "Buildings", 2); setTileProperty(29, 18, "Buildings", "Passable", "T"); setMapTileIndex(29, 19, 68, "Buildings", 2); setTileProperty(29, 19, "Buildings", "Passable", "T"); setMapTileIndex(30, 18, 99, "Buildings", 2); setTileProperty(30, 18, "Buildings", "Passable", "T"); setMapTileIndex(30, 19, 131, "Buildings", 2); setTileProperty(30, 19, "Buildings", "Passable", "T"); } else { setMapTileIndex(29, 18, 35, "Buildings", 2); setTileProperty(29, 18, "Buildings", "Passable", "T"); setMapTileIndex(29, 19, 67, "Buildings", 2); setTileProperty(29, 19, "Buildings", "Passable", "T"); setMapTileIndex(30, 18, 35, "Buildings", 2); setTileProperty(30, 18, "Buildings", "Passable", "T"); setMapTileIndex(30, 19, 67, "Buildings", 2); setTileProperty(30, 19, "Buildings", "Passable", "T"); } }