Added npc to read tile

master
shoaib11120 2021-12-25 14:43:52 +05:30
parent 504624cd7c
commit eb0e3c162c
2 changed files with 7 additions and 2 deletions

View File

@ -264,7 +264,12 @@ namespace stardew_access
string toSpeak = " ";
#region Get objects, crops, resource clumps, etc.
if (!Game1.currentLocation.isTilePassable(Game1.player.nextPosition(Game1.player.getDirection()), Game1.viewport))
if (Game1.currentLocation.isCharacterAtTile(gt) != null)
{
NPC npc = Game1.currentLocation.isCharacterAtTile(gt);
toSpeak = npc.displayName;
}
else if (!Game1.currentLocation.isTilePassable(Game1.player.nextPosition(Game1.player.getDirection()), Game1.viewport))
{
toSpeak = "Colliding";
}

View File

@ -1,7 +1,7 @@
{
"Name": "Stardew Access",
"Author": "Mohammad Shoaib",
"Version": "1.0.7-beta",
"Version": "1.0.8-beta",
"Description": "An accessibility mod with screen reader support!",
"UniqueID": "shoaib.stardewaccess",
"EntryDll": "stardew-access.dll",