Fixed map not narrating bug

This commit is contained in:
shoaib11120
2021-12-20 19:09:34 +05:30
parent 90f9d7aba7
commit 5bfeb8a8ef
2 changed files with 3 additions and 4 deletions

View File

@@ -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<string> 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);
}
}