From 9479456188183c139a577f59e48e434ab6c68876 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Mon, 14 Oct 2024 19:05:11 -0400 Subject: [PATCH] Fix exotics not appearing in exotic bait --- Winch/Patches/API/ItemLoadPatcher.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Winch/Patches/API/ItemLoadPatcher.cs b/Winch/Patches/API/ItemLoadPatcher.cs index 33ef651d..242160fc 100644 --- a/Winch/Patches/API/ItemLoadPatcher.cs +++ b/Winch/Patches/API/ItemLoadPatcher.cs @@ -118,6 +118,31 @@ public static void ChangeHarvestables(IList items) } } + public static void ChangeFish(IList items) + { + var fishes = items.WhereType(); + foreach (var fish in fishes) + { + switch (fish.id) + { + case "oarfish": + case "oarfish-ab-1": + case "coelacanth": + case "coelacanth-ab-1": + case "gulper-eel": + case "gulper-eel-ab-1": + case "goliath-tigerfish": + case "goliath-tigerfish-ab-1": + case "sleeper-shark": + case "sleeper-shark-ab-1": + fish.canAppearInBaitBalls = true; + break; + default: + break; + } + } + } + public static void Prefix(ItemManager __instance, AsyncOperationHandle> handle) { if (handle.Result == null || handle.Status != AsyncOperationStatus.Succeeded) return; @@ -125,6 +150,7 @@ public static void Prefix(ItemManager __instance, AsyncOperationHandle