Made it where birthday events can repeat.
This commit is contained in:
parent
3da95865a3
commit
fe794e7861
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue