fishing: Check player animation to update fishing status

This commit adds an animation check to the other fishing status checks
already present in the fishing overlay (interacting and fishing spot NPC
name check) to ensure that the status correctly changes to "NOT fishing"
when the player's fishing animation is interrupted by certain actions
such as being presented with a level-up dialog. This commit causes one
other behavioral change as a side effect, which is that the player's
fishing status will be "NOT fishing" while running toward a distant
fishing spot until they reach it and start their fishing animation.

Fixes runelite/runelite#10900
This commit is contained in:
Brandt Hill
2020-03-13 19:15:40 -07:00
committed by Jordan Atwood
parent a0ba612219
commit eb09879205
2 changed files with 35 additions and 1 deletions

View File

@@ -103,6 +103,14 @@ public final class AnimationID
public static final int FISHING_CRUSHING_INFERNAL_EELS = 7553;
public static final int FISHING_CUTTING_SACRED_EELS = 7151;
public static final int FISHING_BAREHAND = 6709;
public static final int FISHING_BAREHAND_WINDUP_1 = 6703;
public static final int FISHING_BAREHAND_WINDUP_2 = 6704;
public static final int FISHING_BAREHAND_CAUGHT_SHARK_1 = 6705;
public static final int FISHING_BAREHAND_CAUGHT_SHARK_2 = 6706;
public static final int FISHING_BAREHAND_CAUGHT_SWORDFISH_1 = 6707;
public static final int FISHING_BAREHAND_CAUGHT_SWORDFISH_2 = 6708;
public static final int FISHING_BAREHAND_CAUGHT_TUNA_1 = 6710;
public static final int FISHING_BAREHAND_CAUGHT_TUNA_2 = 6711;
public static final int MINING_BRONZE_PICKAXE = 625;
public static final int MINING_IRON_PICKAXE = 626;
public static final int MINING_STEEL_PICKAXE = 627;