Fixed map not narrating bug

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

View File

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

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