From cb450b95fa378d7179199aadddebe2dc33aad977 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Sat, 30 Apr 2022 20:23:17 +0530 Subject: [PATCH] Added exits for farm houses --- stardew-access/Features/TileInfo.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index b809df3..875c408 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -315,7 +315,9 @@ namespace stardew_access.Features } else if (Game1.currentLocation is FarmHouse farmHouse) { - if (farmHouse.upgradeLevel >= 1) + if (farmHouse.getEntryLocation().X == x && farmHouse.getEntryLocation().Y == y) + return (CATEGORY.Doors, "Exit"); + else if (farmHouse.upgradeLevel >= 1) if (farmHouse.getKitchenStandingSpot().X == x && (farmHouse.getKitchenStandingSpot().Y - 1) == y) // Standing spot is where the player will stand return (CATEGORY.Interactables, "Kitchen"); else if (farmHouse.fridgePosition.X == x && farmHouse.fridgePosition.Y == y) @@ -323,7 +325,9 @@ namespace stardew_access.Features } else if (Game1.currentLocation is IslandFarmHouse islandFarmHouse) { - if ((islandFarmHouse.fridgePosition.X - 1) == x && islandFarmHouse.fridgePosition.Y == y) + if (x == 14 && y == 17) + return (CATEGORY.Doors, "Exit"); + else if ((islandFarmHouse.fridgePosition.X - 1) == x && islandFarmHouse.fridgePosition.Y == y) return (CATEGORY.Interactables, "Kitchen"); else if (islandFarmHouse.fridgePosition.X == x && islandFarmHouse.fridgePosition.Y == y) return (CATEGORY.Interactables, "Fridge");