Add Aerial Fishing to fishing plugin

This commit is contained in:
Magic fTail
2019-01-10 19:19:41 +01:00
parent 5784204965
commit 12e036848d
2 changed files with 8 additions and 2 deletions

View File

@@ -176,7 +176,8 @@ public class FishingPlugin extends Plugin
return;
}
if (event.getMessage().contains("You catch a") || event.getMessage().contains("You catch some"))
if (event.getMessage().contains("You catch a") || event.getMessage().contains("You catch some") ||
event.getMessage().equals("Your cormorant returns with its catch."))
{
session.setLastFishCaught(Instant.now());
spotOverlay.setHidden(false);
@@ -240,6 +241,8 @@ public class FishingPlugin extends Plugin
case ItemID.LOBSTER_POT:
case ItemID.KARAMBWAN_VESSEL:
case ItemID.KARAMBWAN_VESSEL_3159:
case ItemID.CORMORANTS_GLOVE:
case ItemID.CORMORANTS_GLOVE_22817:
return true;
}
}

View File

@@ -81,6 +81,7 @@ import static net.runelite.api.NpcID.FISHING_SPOT_7732;
import static net.runelite.api.NpcID.FISHING_SPOT_7733;
import static net.runelite.api.NpcID.FISHING_SPOT_7946;
import static net.runelite.api.NpcID.FISHING_SPOT_7947;
import static net.runelite.api.NpcID.FISHING_SPOT_8523;
import static net.runelite.api.NpcID.ROD_FISHING_SPOT;
import static net.runelite.api.NpcID.ROD_FISHING_SPOT_1508;
import static net.runelite.api.NpcID.ROD_FISHING_SPOT_1509;
@@ -154,7 +155,9 @@ enum FishingSpot
),
DARK_CRAB("Dark Crab", ItemID.RAW_DARK_CRAB,
FISHING_SPOT_1536
);
),
COMMON_TENCH("Common tench, Bluegill, Greater siren, Mottled eel", ItemID.COMMON_TENCH,
FISHING_SPOT_8523);
@Getter
private static final Map<Integer, FishingSpot> SPOTS = new HashMap<>();