Added building human and animal doors to read tile
parent
e1e75ab449
commit
97fabf7638
|
@ -299,8 +299,15 @@ namespace stardew_access.Features
|
|||
{
|
||||
Building building = farm.getBuildingAt(new Vector2(x, y));
|
||||
if (building != null)
|
||||
{
|
||||
if ((building.humanDoor.Value.X + building.tileX.Value) == x && (building.humanDoor.Value.Y + building.tileY.Value) == y)
|
||||
return (CATEGORY.Doors, building.buildingType.Value + " Door");
|
||||
else if ((building.animalDoor.Value.X + building.tileX.Value) == x && (building.animalDoor.Value.Y + building.tileY.Value) == y)
|
||||
return (CATEGORY.Doors, building.buildingType.Value + " Animal Door " + ((building.animalDoorOpen.Value) ? "Opened" : "Closed"));
|
||||
else
|
||||
return (CATEGORY.Buildings, building.buildingType.Value);
|
||||
}
|
||||
}
|
||||
else if (Game1.currentLocation is Town)
|
||||
{
|
||||
if (SpecialOrder.IsSpecialOrdersBoardUnlocked() && x == 62 && y == 93)
|
||||
|
|
Loading…
Reference in New Issue