Added interactables to town location

master
Mohammad Shoaib 2022-04-24 12:26:53 +05:30
parent 21c5080f73
commit 2a03fa6724
2 changed files with 44 additions and 11 deletions

View File

@ -395,17 +395,17 @@ namespace stardew_access.Features
if (Game1.currentLocation.Map.GetLayer("Buildings").Tiles[x, y] != null)
index = Game1.currentLocation.Map.GetLayer("Buildings").Tiles[x, y].TileIndex;
/* Add More
MainClass.monitor.Log(index.ToString(), LogLevel.Debug);
*/
if (Game1.currentLocation is Farm)
{
Building building = ((Farm)Game1.currentLocation).getBuildingAt(new Vector2(x, y));
if (building != null)
{
return (CATEGORY.Buildings, building.buildingType.Value);
}
else if (Game1.currentLocation is Town)
{
if (SpecialOrder.IsSpecialOrdersBoardUnlocked() && x == 62 && y == 93)
return (CATEGORY.Interactables, "Special quest board");
}
if (index != null)

View File

@ -3,15 +3,48 @@
{
"Ticket Machine":
{
"x":7,
"y":11,
"type":"interactables"
"x":[7],
"y":[11],
"type":"interactable"
},
"Minecart":
{
"x":4,
"y":3,
"type":"interactables"
"x":[4,5],
"y":[3],
"type":"interactable"
}
},
"town":
{
"Calender Board":
{
"x":[41],
"y":[56],
"type":"interactable"
},
"Daily Quest Board":
{
"x":[42],
"y":[56],
"type":"interactable"
},
"Sewer":
{
"x":[34,35],
"y":[95,96],
"type":"interactable"
},
"Ice Cream Stand":
{
"x":[88],
"y":[92],
"type":"interactable"
},
"Minecart":
{
"x":[105,106],
"y":[79],
"type":"interactable"
}
}
}