Add files via upload

This commit is contained in:
janavarro95 2016-08-22 17:06:07 -07:00 committed by GitHub
parent 36251a9756
commit a33fb0c13d
1 changed files with 4 additions and 1 deletions

View File

@ -67,6 +67,7 @@ namespace HappyBirthday
if (game_loaded == false) return; if (game_loaded == false) return;
if (Game1.player.isMoving()==true && once == false) if (Game1.player.isMoving()==true && once == false)
{ {
Log.AsyncM("Is it my birthday? "+isplayersbirthday());
if (isplayersbirthday() == true) if (isplayersbirthday() == true)
{ {
foreach (var location in Game1.locations) foreach (var location in Game1.locations)
@ -91,11 +92,13 @@ namespace HappyBirthday
} }
//end birthday check //end birthday check
} }
once = true;
if (player_birthday_season == "" || player_birthday_season == null || player_birthday_date == 0) if (player_birthday_season == "" || player_birthday_season == null || player_birthday_date == 0)
{ {
Game1.activeClickableMenu = new StardewValley.Menus.Birthday_Menu(); Game1.activeClickableMenu = new StardewValley.Menus.Birthday_Menu();
once = false;
} }
once = true;
} }
if (Game1.currentSpeaker != null) if (Game1.currentSpeaker != null)