Removed unnecessary comment

master
Mohammad Shoaib Khan 2023-02-20 13:54:39 +05:30
parent b8f77384b2
commit 0a244649ee
No known key found for this signature in database
GPG Key ID: D8040D966320B620
1 changed files with 2 additions and 37 deletions

View File

@ -127,45 +127,10 @@ namespace stardew_access.Patches
if (Game1.player.rightRing.Value != null) if (Game1.player.rightRing.Value != null)
toSpeak = $"{toSpeak}: {Game1.player.rightRing.Value.DisplayName}"; toSpeak = $"{toSpeak}: {Game1.player.rightRing.Value.DisplayName}";
} }
else
{
if (InventoryUtils.narrateHoveredSlot(__instance.inventory, __instance.inventory.inventory, __instance.inventory.actualInventory, x, y)) if (InventoryUtils.narrateHoveredSlot(__instance.inventory, __instance.inventory.inventory, __instance.inventory.actualInventory, x, y))
return; 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 (forgeMenuQuery != toSpeak) if (forgeMenuQuery != toSpeak)
{ {
forgeMenuQuery = toSpeak; forgeMenuQuery = toSpeak;