From b6b8ad8c8abf905a6f6147f8d92ea628c2f8d0ed Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Sun, 19 Feb 2023 21:50:57 +0530 Subject: [PATCH] Entries for town map can be distinguished for joja run use 'town_joja' as location name in static-tiles.json or custom-tiles.json --- stardew-access/Features/StaticTiles.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stardew-access/Features/StaticTiles.cs b/stardew-access/Features/StaticTiles.cs index a7c6333..9b36631 100644 --- a/stardew-access/Features/StaticTiles.cs +++ b/stardew-access/Features/StaticTiles.cs @@ -123,7 +123,12 @@ namespace stardew_access.Features if (farmTypeIndex != Game1.whichFarm) continue; // Skip if current farm type does not matches // if (Game1.whichModFarm != null) MainClass.DebugLog($"{farmType} {Game1.whichModFarm.MapName}"); - if (farmTypeIndex != 7 || Game1.whichModFarm == null || !farmType.ToLower().Equals(Game1.whichModFarm.MapName.ToLower())) continue; // Not checked but should work + if (farmTypeIndex != 7 || Game1.whichModFarm == null || !farmType.ToLower().Equals(Game1.whichModFarm.MapName.ToLower())) continue; // Not tested but should work + } + + if (locationName.ToLower().Equals("town_joja") && Game1.MasterPlayer.mailReceived.Contains("JojaMember")) + { + locationName = "town"; } if (!Game1.currentLocation.Name.ToLower().Equals(locationName.ToLower())) continue;