From 5bfeb8a8ef8d0c2784229a725a9db943d7ab5c42 Mon Sep 17 00:00:00 2001 From: shoaib11120 Date: Mon, 20 Dec 2021 19:09:34 +0530 Subject: [PATCH] Fixed map not narrating bug --- stardew-access/Game/SlotAndLocation.cs | 4 ++-- stardew-access/Patches/DialoguePatcher.cs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/stardew-access/Game/SlotAndLocation.cs b/stardew-access/Game/SlotAndLocation.cs index 94ec5ee..adc9b7f 100644 --- a/stardew-access/Game/SlotAndLocation.cs +++ b/stardew-access/Game/SlotAndLocation.cs @@ -24,7 +24,7 @@ namespace stardew_access.Game return; previousSlotItem = currentSlotItem; - ScreenReader.say($"{currentSlotItem.Name} Selected", true); + ScreenReader.say($"{currentSlotItem.DisplayName} Selected", true); } // Narrates current location's name @@ -39,7 +39,7 @@ namespace stardew_access.Game return; previousLocation = currentLocation; - ScreenReader.say($"{currentLocation.Name} Entered",true); + ScreenReader.say($"{currentLocation.NameOrUniqueName} Entered",true); } } } diff --git a/stardew-access/Patches/DialoguePatcher.cs b/stardew-access/Patches/DialoguePatcher.cs index 700435f..283aa44 100644 --- a/stardew-access/Patches/DialoguePatcher.cs +++ b/stardew-access/Patches/DialoguePatcher.cs @@ -22,7 +22,7 @@ namespace stardew_access.Patches { // For Normal Character dialogues Dialogue dialogue = __instance.characterDialogue; - string speakerName = dialogue.speaker.Name; + string speakerName = dialogue.speaker.displayName; List dialogues = dialogue.dialogues; int dialogueIndex = dialogue.currentDialogueIndex; string toSpeak = $"{speakerName} said, {dialogues[dialogueIndex]}"; @@ -30,7 +30,6 @@ namespace stardew_access.Patches if (currentDialogue != toSpeak) { currentDialogue = toSpeak; - MainClass.monitor.Log(toSpeak, LogLevel.Info); ScreenReader.say(toSpeak, false); } }