Exemplo n.º 1
0
		public override void MakeMapModifications(bool force = false)
		{
			base.MakeMapModifications(force);
			if (force)
			{
				hasShownCCUpgrade = false;
			}
			if ((bool)(Game1.getLocationFromName("Beach") as Beach).bridgeFixed || NetWorldState.checkAnywhereForWorldStateID("beachBridgeFixed"))
			{
				Beach.fixBridge(this);
			}
			if (Game1.MasterPlayer.mailReceived.Contains("communityUpgradeShortcuts"))
			{
				Beach.showCommunityUpgradeShortcuts(this, ref hasShownCCUpgrade);
			}
		}
Exemplo n.º 2
0
 protected override void resetLocalState()
 {
     base.resetLocalState();
     if ((bool)(Game1.getLocationFromName("Beach") as Beach).bridgeFixed || NetWorldState.checkAnywhereForWorldStateID("beachBridgeFixed"))
     {
         Beach.fixBridge(this);
     }
     if (Game1.timeOfDay >= 1700)
     {
         Game1.changeMusicTrack("night_market");
     }
     else
     {
         Game1.changeMusicTrack("ocean");
     }
     shopClosedTexture = Game1.temporaryContent.Load <Texture2D>("LooseSprites\\temporary_sprites_1");
     temporarySprites.Add(new EmilysParrot(new Vector2(2968f, 2056f)));
     paintingMailKey = "NightMarketYear" + Game1.year + "Day" + getDayOfNightMarket() + "_paintingSold";
     if (Game1.MasterPlayer.mailReceived.Contains("communityUpgradeShortcuts"))
     {
         Beach.showCommunityUpgradeShortcuts(this, ref hasShownCCUpgrade);
     }
 }