From 03583f5dee7507e3425df4e9c4ae6c94617035bf Mon Sep 17 00:00:00 2001 From: Witchybun Date: Fri, 19 Jan 2024 19:48:58 -0600 Subject: [PATCH 1/3] Send actual crafting thing yknow. --- .../Locations/CodeInjections/Modded/ModdedEventInjections.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StardewArchipelago/Locations/CodeInjections/Modded/ModdedEventInjections.cs b/StardewArchipelago/Locations/CodeInjections/Modded/ModdedEventInjections.cs index 9c9557a6b..d7a8c9ece 100644 --- a/StardewArchipelago/Locations/CodeInjections/Modded/ModdedEventInjections.cs +++ b/StardewArchipelago/Locations/CodeInjections/Modded/ModdedEventInjections.cs @@ -93,7 +93,7 @@ public static bool AddCraftingRecipe_CheckForStrayRecipe_Prefix(Event __instance return true; } - _locationChecker.AddCheckedLocation($"{eventCooking[__instance.id]}{RECIPE_SUFFIX}"); + _locationChecker.AddCheckedLocation($"{eventCrafting[__instance.id]}{RECIPE_SUFFIX}"); __instance.CurrentCommand++; return false; // don't run original logic From d287ea8ca9356be5db01ffdbe6ee1267a238cb2c Mon Sep 17 00:00:00 2001 From: Witchybun Date: Fri, 19 Jan 2024 20:09:52 -0600 Subject: [PATCH 2/3] Add meteors from DeepWoods to analyze option --- .../Locations/CodeInjections/Modded/MagicModInjections.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StardewArchipelago/Locations/CodeInjections/Modded/MagicModInjections.cs b/StardewArchipelago/Locations/CodeInjections/Modded/MagicModInjections.cs index d5b1d4cd2..dc0b0e227 100644 --- a/StardewArchipelago/Locations/CodeInjections/Modded/MagicModInjections.cs +++ b/StardewArchipelago/Locations/CodeInjections/Modded/MagicModInjections.cs @@ -225,9 +225,9 @@ private static void CheckTileAnalyzeLocations(Farmer player, List spells var tile = player.currentLocation.map.GetLayer("Buildings").Tiles[(int)tilePos.X, (int)tilePos.Y]; if (tile != null && tile.TileIndex == MINE_LADDER) spellsLearned.Add(ANALYZE_DESCEND_AP_LOCATION); - if (player.currentLocation is Farm farm) + if (player.currentLocation is Farm farm || player.currentLocation.Name.Contains("DeepWoods")) { - foreach (var clump in farm.resourceClumps) + foreach (var clump in player.currentLocation.resourceClumps) { if (clump.parentSheetIndex.Value == CROP_TILE && new Rectangle((int)clump.tile.Value.X, (int)clump.tile.Value.Y, clump.width.Value, clump.height.Value).Contains((int)tilePos.X, (int)tilePos.Y)) From a5d0b5eeedecff6c10a9d9d2344fb9ecbf04833a Mon Sep 17 00:00:00 2001 From: Witchybun Date: Fri, 19 Jan 2024 20:22:36 -0600 Subject: [PATCH 3/3] Bugfix for magic elixir --- StardewArchipelago/ModEntry.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/StardewArchipelago/ModEntry.cs b/StardewArchipelago/ModEntry.cs index d26c2c984..9d4cb2a6b 100644 --- a/StardewArchipelago/ModEntry.cs +++ b/StardewArchipelago/ModEntry.cs @@ -377,6 +377,10 @@ private void DoBugsCleanup() Game1.player.cookingRecipes.Remove("Lucky Lunch"); } } + if (_archipelago.HasReceivedItem("Magic Elixir Recipe") & !Game1.player.cookingRecipes.ContainsKey("Magic Elixir")) + { + Game1.player.cookingRecipes.Add("Magic Elixir", 0); // Its a cooking recipe. + } // Fix to remove dupes in Railroad Boulder if (!_archipelago.SlotData.Mods.HasMod(ModNames.SVE)) {