Added dynamic detection of sink in farm house
Replace the name of kitchen with stovemaster
parent
b6b8ad8c8a
commit
9af30890bc
|
@ -455,15 +455,19 @@ namespace stardew_access.Features
|
||||||
else if (Game1.currentLocation is FarmHouse farmHouse)
|
else if (Game1.currentLocation is FarmHouse farmHouse)
|
||||||
{
|
{
|
||||||
if (farmHouse.upgradeLevel >= 1)
|
if (farmHouse.upgradeLevel >= 1)
|
||||||
if (farmHouse.getKitchenStandingSpot().X == x && (farmHouse.getKitchenStandingSpot().Y - 1) == y) // Standing spot is where the player will stand
|
if (farmHouse.getKitchenStandingSpot().X == x && (farmHouse.getKitchenStandingSpot().Y - 1) == y)
|
||||||
return (CATEGORY.Interactables, "Kitchen");
|
return (CATEGORY.Interactables, "Stove");
|
||||||
|
else if ((farmHouse.getKitchenStandingSpot().X + 1) == x && (farmHouse.getKitchenStandingSpot().Y - 1) == y)
|
||||||
|
return (CATEGORY.Others, "Sink");
|
||||||
else if (farmHouse.fridgePosition.X == x && farmHouse.fridgePosition.Y == y)
|
else if (farmHouse.fridgePosition.X == x && farmHouse.fridgePosition.Y == y)
|
||||||
return (CATEGORY.Interactables, "Fridge");
|
return (CATEGORY.Interactables, "Fridge");
|
||||||
}
|
}
|
||||||
else if (Game1.currentLocation is IslandFarmHouse islandFarmHouse)
|
else if (Game1.currentLocation is IslandFarmHouse islandFarmHouse)
|
||||||
{
|
{
|
||||||
if ((islandFarmHouse.fridgePosition.X - 1) == x && islandFarmHouse.fridgePosition.Y == y)
|
if ((islandFarmHouse.fridgePosition.X - 2) == x && islandFarmHouse.fridgePosition.Y == y)
|
||||||
return (CATEGORY.Interactables, "Kitchen");
|
return (CATEGORY.Interactables, "Stove");
|
||||||
|
else if ((islandFarmHouse.fridgePosition.X - 1) == x && islandFarmHouse.fridgePosition.Y == y)
|
||||||
|
return (CATEGORY.Others, "Sink");
|
||||||
else if (islandFarmHouse.fridgePosition.X == x && islandFarmHouse.fridgePosition.Y == y)
|
else if (islandFarmHouse.fridgePosition.X == x && islandFarmHouse.fridgePosition.Y == y)
|
||||||
return (CATEGORY.Interactables, "Fridge");
|
return (CATEGORY.Interactables, "Fridge");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue