Added date and day to time and day narrator

master
shoaib11120 2021-12-25 13:42:47 +05:30
parent 8a288b76c5
commit e71bdf0e09
3 changed files with 7 additions and 3 deletions

View File

@ -71,11 +71,16 @@ namespace stardew_access.Game
return Game1.CurrentSeasonDisplayName; return Game1.CurrentSeasonDisplayName;
} }
public static int getDay() public static int getDate()
{ {
return Game1.dayOfMonth; return Game1.dayOfMonth;
} }
public static string getDay()
{
return Game1.Date.DayOfWeek.ToString();
}
public static int getMoney() public static int getMoney()
{ {
if(Game1.player == null) if(Game1.player == null)

View File

@ -181,7 +181,7 @@ namespace stardew_access
// Narrate time and season // Narrate time and season
if (Equals(e.Button, SButton.Q)) if (Equals(e.Button, SButton.Q))
{ {
string toSpeak = $"Time is {CurrentPlayer.getTimeOfDay()} and it is {CurrentPlayer.getDay()} of {CurrentPlayer.getSeason()}"; string toSpeak = $"Time is {CurrentPlayer.getTimeOfDay()} and it is {CurrentPlayer.getDay()} {CurrentPlayer.getDate()} of {CurrentPlayer.getSeason()}";
ScreenReader.say(toSpeak, true); ScreenReader.say(toSpeak, true);
} }
} }

View File

@ -17,7 +17,6 @@ namespace stardew_access.Patches
if (__instance.transitioning) if (__instance.transitioning)
return; return;
if (__instance.characterDialogue != null) if (__instance.characterDialogue != null)
{ {
// For Normal Character dialogues // For Normal Character dialogues