diff --git a/stardew-access/Patches/DialoguePatches.cs b/stardew-access/Patches/DialoguePatches.cs index 21ad188..37ecb6d 100644 --- a/stardew-access/Patches/DialoguePatches.cs +++ b/stardew-access/Patches/DialoguePatches.cs @@ -191,6 +191,9 @@ namespace stardew_access.Patches if (Game1.activeClickableMenu is PurchaseAnimalsMenu) return; + + if (Game1.activeClickableMenu is CraftingPage) + return; #endregion string toSpeak = " "; diff --git a/stardew-access/Patches/GameMenuPatches.cs b/stardew-access/Patches/GameMenuPatches.cs index 062e241..742171e 100644 --- a/stardew-access/Patches/GameMenuPatches.cs +++ b/stardew-access/Patches/GameMenuPatches.cs @@ -1031,7 +1031,19 @@ namespace stardew_access.Patches #endregion #region Narrate hovered recipe - if (___hoverRecipe != null) + if (___hoverRecipe == null) + { + string query = $"unknown recipe:{__instance.getCurrentlySnappedComponent().myID}"; + + if (craftingPageQueryKey != query) + { + craftingPageQueryKey = query; + gameMenuQueryKey = ""; + hoveredItemQueryKey = ""; + MainClass.GetScreenReader().Say("unknown recipe", true); + } + } + else { string name = ___hoverRecipe.DisplayName; int numberOfProduce = ___hoverRecipe.numberProducedPerCraft;