Possibly also added mod loaded farm layout support to it.

(not tested)
master
Mohammad Shoaib Khan 2023-02-19 17:36:57 +05:30
parent 434921a668
commit feff266d7c
No known key found for this signature in database
GPG Key ID: D8040D966320B620
1 changed files with 3 additions and 1 deletions

View File

@ -122,6 +122,8 @@ namespace stardew_access.Features
locationName = locationName.Remove(locationName.LastIndexOf("_")); locationName = locationName.Remove(locationName.LastIndexOf("_"));
if (farmTypeIndex != Game1.whichFarm) continue; // Skip if current farm type does not matches 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 (!Game1.currentLocation.Name.ToLower().Equals(locationName.ToLower())) continue; if (!Game1.currentLocation.Name.ToLower().Equals(locationName.ToLower())) continue;
@ -192,7 +194,7 @@ namespace stardew_access.Features
"combat" => 4, "combat" => 4,
"fourcorners" => 5, "fourcorners" => 5,
"beach" => 6, "beach" => 6,
_ => 0, _ => 7,
}; };
} }
} }