Added npc to read tile
parent
504624cd7c
commit
eb0e3c162c
|
@ -264,7 +264,12 @@ namespace stardew_access
|
||||||
string toSpeak = " ";
|
string toSpeak = " ";
|
||||||
|
|
||||||
#region Get objects, crops, resource clumps, etc.
|
#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";
|
toSpeak = "Colliding";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"Name": "Stardew Access",
|
"Name": "Stardew Access",
|
||||||
"Author": "Mohammad Shoaib",
|
"Author": "Mohammad Shoaib",
|
||||||
"Version": "1.0.7-beta",
|
"Version": "1.0.8-beta",
|
||||||
"Description": "An accessibility mod with screen reader support!",
|
"Description": "An accessibility mod with screen reader support!",
|
||||||
"UniqueID": "shoaib.stardewaccess",
|
"UniqueID": "shoaib.stardewaccess",
|
||||||
"EntryDll": "stardew-access.dll",
|
"EntryDll": "stardew-access.dll",
|
||||||
|
|
Loading…
Reference in New Issue