Entries for town map can be distinguished for joja run

use 'town_joja' as location name in static-tiles.json or custom-tiles.json
master
Mohammad Shoaib Khan 2023-02-19 21:50:57 +05:30
parent feff266d7c
commit b6b8ad8c8a
No known key found for this signature in database
GPG Key ID: D8040D966320B620
1 changed files with 6 additions and 1 deletions

View File

@ -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;