Added tile indexes

master
shoaib11120 2022-01-13 14:13:15 +05:30
parent 4d0dd1dc11
commit db1cc7f58d
2 changed files with 39 additions and 1 deletions

View File

@ -77,6 +77,44 @@ namespace stardew_access.Game
else if (!Game1.currentLocation.isTilePassable(Game1.player.nextPosition(Game1.player.getDirection()), Game1.viewport))
{
toSpeak = "Colliding";
} else
{
try
{
int index = Game1.currentLocation.Map.GetLayer("Buildings").Tiles[x, y].TileIndex;
/* Add More
MainClass.monitor.Log(index.ToString(), LogLevel.Debug);
*/
switch (index)
{
case 1955:
case 41:
toSpeak = "Mail Box";
break;
case 173:
toSpeak = "Fridge";
break;
case 169:
case 170:
case 171:
case 172:
toSpeak = "Kitchen";
break;
case 1003:
toSpeak = "Street lamp";
break;
case 78:
toSpeak = "Trash bin";
break;
case 617:
toSpeak = "Daily quest";
break;
case 616:
toSpeak = "Calender";
break;
}
}
catch (Exception) {}
}
#endregion

View File

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