using StardewValley; namespace Omegasis.HappyBirthday.Framework { /// Provides utility methods for displaying messages to the user. internal class Messages { /********* ** Public methods *********/ /// Show a message to the user with a star icon. /// The message to display. public static void ShowStarMessage(string message) { Game1.addHUDMessage(new HUDMessage(message, 1)); if (!message.Contains("Inventory")) { Game1.playSound("cancel"); return; } if (!Game1.player.mailReceived.Contains("BackpackTip")) { Game1.player.mailReceived.Add("BackpackTip"); Game1.addMailForTomorrow("pierreBackpack", false, false); } } } }