From 2a03fa67244cfd5a569c776602f01631e4b784ec Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Sun, 24 Apr 2022 12:26:53 +0530 Subject: [PATCH] Added interactables to town location --- stardew-access/Features/TileInfo.cs | 10 +++---- stardew-access/static-tiles.json | 45 +++++++++++++++++++++++++---- 2 files changed, 44 insertions(+), 11 deletions(-) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index e5a0e24..b2c557f 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -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) diff --git a/stardew-access/static-tiles.json b/stardew-access/static-tiles.json index 8064919..4e2816d 100644 --- a/stardew-access/static-tiles.json +++ b/stardew-access/static-tiles.json @@ -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" } } } \ No newline at end of file