From 0a244649ee640d58840e2ccc8a8d5c343de26068 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Mon, 20 Feb 2023 13:54:39 +0530 Subject: [PATCH] Removed unnecessary comment --- stardew-access/Patches/MenuPatches.cs | 39 ++------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/stardew-access/Patches/MenuPatches.cs b/stardew-access/Patches/MenuPatches.cs index ff1535d..e33a237 100644 --- a/stardew-access/Patches/MenuPatches.cs +++ b/stardew-access/Patches/MenuPatches.cs @@ -127,44 +127,9 @@ namespace stardew_access.Patches if (Game1.player.rightRing.Value != null) toSpeak = $"{toSpeak}: {Game1.player.rightRing.Value.DisplayName}"; } - else - { - if (InventoryUtils.narrateHoveredSlot(__instance.inventory, __instance.inventory.inventory, __instance.inventory.actualInventory, x, y)) - return; - - // for (int i = 0; i < __instance.inventory.inventory.Count; i++) - // { - // if (!__instance.inventory.inventory[i].containsPoint(x, y)) - // continue; - // - // if (__instance.inventory.actualInventory[i] == null) - // toSpeak = "Empty slot"; - // else - // { - // toSpeak = $"{__instance.inventory.actualInventory[i].Stack} {__instance.inventory.actualInventory[i].DisplayName}"; - // - // if (!__instance.inventory.highlightMethod(__instance.inventory.actualInventory[i])) - // { - // toSpeak = $"{toSpeak} not usable here"; - // } - // - // if (prevSlotIndex != i) - // { - // prevSlotIndex = i; - // Game1.playSound("invalid-selection"); - // } - // } - // - // if (forgeMenuQuery != $"{toSpeak}:{i}") - // { - // forgeMenuQuery = $"{toSpeak}:{i}"; - // MainClass.ScreenReader.Say(toSpeak, true); - // } - // - // return; - // } - } + if (InventoryUtils.narrateHoveredSlot(__instance.inventory, __instance.inventory.inventory, __instance.inventory.actualInventory, x, y)) + return; if (forgeMenuQuery != toSpeak) {