Made it where birthday events can repeat.

This commit is contained in:
JoshuaNavarro 2019-12-06 15:26:16 -08:00
parent 3da95865a3
commit fe794e7861
1 changed files with 8 additions and 1 deletions

View File

@ -551,7 +551,6 @@ namespace Omegasis.HappyBirthday
MultiplayerSupport.SendBirthdayInfoToOtherPlayers(); MultiplayerSupport.SendBirthdayInfoToOtherPlayers();
} }
this.eventManager.addEvent(BirthdayEvents.CommunityCenterJunimoBirthday());
if (Game1.player.mailReceived.Contains("birthdayMom")) if (Game1.player.mailReceived.Contains("birthdayMom"))
{ {
Game1.player.mailReceived.Remove("birthdayMom"); Game1.player.mailReceived.Remove("birthdayMom");
@ -564,6 +563,14 @@ namespace Omegasis.HappyBirthday
{ {
Game1.player.mailReceived.Remove("birthdayJunimos"); Game1.player.mailReceived.Remove("birthdayJunimos");
} }
EventHelper communityCenterJunimoBirthday = BirthdayEvents.CommunityCenterJunimoBirthday();
this.eventManager.addEvent(communityCenterJunimoBirthday);
if (Game1.player.eventsSeen.Contains(communityCenterJunimoBirthday.getEventID()))
{
Game1.player.eventsSeen.Remove(communityCenterJunimoBirthday.getEventID()); //Repeat the event.
}
} }
/// <summary>Raised before the game begins writes data to the save file (except the initial save creation).</summary> /// <summary>Raised before the game begins writes data to the save file (except the initial save creation).</summary>