From 025956f66ca51621ebc7f66d09e78f9f19ec7596 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Tue, 5 Apr 2022 17:37:09 +0530 Subject: [PATCH] Added recipe skipping when pressing c if it is not unlocked --- stardew-access/Patches/GameMenuPatches.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stardew-access/Patches/GameMenuPatches.cs b/stardew-access/Patches/GameMenuPatches.cs index 34edd8a..fc4c107 100644 --- a/stardew-access/Patches/GameMenuPatches.cs +++ b/stardew-access/Patches/GameMenuPatches.cs @@ -1144,6 +1144,10 @@ namespace stardew_access.Patches __instance.setCurrentlySnappedComponentTo(pagesOfCraftingRecipes[___currentCraftingPage].ElementAt(currentSelectedCraftingRecipe).Key.myID); pagesOfCraftingRecipes[___currentCraftingPage].ElementAt(currentSelectedCraftingRecipe).Key.snapMouseCursorToCenter(); + + // Skip if recipe is not unlocked/unknown + if (pagesOfCraftingRecipes[___currentCraftingPage].ElementAt(currentSelectedCraftingRecipe).Key.hoverText.Equals("ghosted")) + CycleThroughRecipies(pagesOfCraftingRecipes, ___currentCraftingPage, __instance); } // This method is used to get the inventory items to check if the player has enough ingredients for a recipe