Added ore panning spot to interactables category.
This commit is contained in:
@@ -300,7 +300,11 @@ namespace stardew_access.Features
|
|||||||
/// <br/>name: This is the name of the tile. Default to null if the tile tile has nothing on it.</returns>
|
/// <br/>name: This is the name of the tile. Default to null if the tile tile has nothing on it.</returns>
|
||||||
public static (CATEGORY? category, string? name) getDynamicTilesInfo(int x, int y, bool lessInfo = false)
|
public static (CATEGORY? category, string? name) getDynamicTilesInfo(int x, int y, bool lessInfo = false)
|
||||||
{
|
{
|
||||||
if (Game1.currentLocation is Farm farm)
|
if (Game1.currentLocation.orePanPoint != Point.Zero && Game1.currentLocation.orePanPoint == new Point(x, y))
|
||||||
|
{
|
||||||
|
return (CATEGORY.Interactables, "panning spot");
|
||||||
|
}
|
||||||
|
else if (Game1.currentLocation is Farm farm)
|
||||||
{
|
{
|
||||||
if (farm.GetMainMailboxPosition().X == x && farm.GetMainMailboxPosition().Y == y)
|
if (farm.GetMainMailboxPosition().X == x && farm.GetMainMailboxPosition().Y == y)
|
||||||
return (CATEGORY.Interactables, "Mail box");
|
return (CATEGORY.Interactables, "Mail box");
|
||||||
|
Reference in New Issue
Block a user