From 7771175ef906a460c0f28a33fda7fe57d8fb07ab Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Fri, 28 Jan 2022 11:47:50 +0530 Subject: [PATCH] Added bush detection --- .gitignore | 2 ++ stardew-access/Features/ReadTile.cs | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9491a2f..7bc055e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ ## ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore +.vscode/* + # User-specific files *.rsuser *.suo diff --git a/stardew-access/Features/ReadTile.cs b/stardew-access/Features/ReadTile.cs index c4e689b..8c2d547 100644 --- a/stardew-access/Features/ReadTile.cs +++ b/stardew-access/Features/ReadTile.cs @@ -68,6 +68,10 @@ namespace stardew_access.Game if (terrain != null) toSpeak = terrain; } + else if ( Game1.currentLocation.getLargeTerrainFeatureAt(x, y) != null) + { + toSpeak = "Bush"; + } else if (getResourceClumpAtTile(x, y) != null) { toSpeak = getResourceClumpAtTile(x, y); @@ -366,7 +370,7 @@ namespace stardew_access.Game { toReturn = "Leaf"; } - + return toReturn; }