diff --git a/AutoHook/AutoHook.csproj b/AutoHook/AutoHook.csproj index 936a5fb..b53f8b6 100644 --- a/AutoHook/AutoHook.csproj +++ b/AutoHook/AutoHook.csproj @@ -2,7 +2,7 @@ Det - 2.2.2.2 + 2.2.2.3 Auto hooks for you https://github.com/InitialDet/AutoHook Release;Debug diff --git a/AutoHook/AutoHook.json b/AutoHook/AutoHook.json index 58ce928..c832658 100644 --- a/AutoHook/AutoHook.json +++ b/AutoHook/AutoHook.json @@ -9,5 +9,5 @@ "Tags": ["Gathering","Fishing"], "DalamudApiLevel": 6, "IconUrl": "https://raw.githubusercontent.com/InitialDet/AutoHook/main/AutoHook/images/icon.png", - "Changelog": "- Trying to add support for CN server" + "Changelog": "- Trying to add support for CN server \n- Fixing problems with collectable fish" } \ No newline at end of file diff --git a/AutoHook/Parser/FishingParser.cs b/AutoHook/Parser/FishingParser.cs index d0afc23..a8deb5e 100644 --- a/AutoHook/Parser/FishingParser.cs +++ b/AutoHook/Parser/FishingParser.cs @@ -104,6 +104,12 @@ private void OnCatchUpdate(IntPtr module, uint fishId, bool large, ushort size, { _catchHook!.Original(module, fishId, large, size, amount, level, unk7, unk8, unk9, unk10, unk11, unk12); + // Check against collectibles. + if (fishId > 500000) + { + fishId -= 500000; + } + string fishName = MultiString.ParseSeStringLumina(Service.DataManager.GetExcelSheet()!.GetRow(fishId)?.Name); CaughtFish?.Invoke(fishName, fishId); }