Skip to content

Commit

Permalink
AutoHook 2.2.2.3 [PUSH]
Browse files Browse the repository at this point in the history
fixing #22
  • Loading branch information
InitialDet committed Aug 15, 2022
1 parent e9bae6f commit 4383096
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AutoHook/AutoHook.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>Det</Authors>
<Version>2.2.2.2</Version>
<Version>2.2.2.3</Version>
<Description>Auto hooks for you</Description>
<PackageProjectUrl>https://github.com/InitialDet/AutoHook</PackageProjectUrl>
<Configurations>Release;Debug</Configurations>
Expand Down
2 changes: 1 addition & 1 deletion AutoHook/AutoHook.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
6 changes: 6 additions & 0 deletions AutoHook/Parser/FishingParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Item>()!.GetRow(fishId)?.Name);
CaughtFish?.Invoke(fishName, fishId);
}
Expand Down

0 comments on commit 4383096

Please sign in to comment.